Skip to content

Commit 23b2074

Browse files
committed
fix: expand category subtree when new category is added
1 parent f3f24f8 commit 23b2074

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/CategoryEditTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ div
1717
span.float-right
1818
b-btn.ml-1(size="sm", variant="outline-secondary", @click="showEditModal()" style="border: 0;" pill)
1919
icon(name="edit")
20-
b-btn.ml-1(size="sm", variant="outline-success", @click="addSubclass(_class)" style="border: 0;" pill)
20+
b-btn.ml-1(size="sm", variant="outline-success", @click="addSubclass(_class); expanded = true" style="border: 0;" pill)
2121
icon(name="plus")
2222
div
2323
div.pa-2(v-for="child in _class.children", style="background: rgba(0, 0, 0, 0);", v-show="expanded")

0 commit comments

Comments
 (0)