Skip to content

Commit

Permalink
fix: expand category subtree when new category is added
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 31, 2021
1 parent f3f24f8 commit 23b2074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CategoryEditTree.vue
Expand Up @@ -17,7 +17,7 @@ div
span.float-right
b-btn.ml-1(size="sm", variant="outline-secondary", @click="showEditModal()" style="border: 0;" pill)
icon(name="edit")
b-btn.ml-1(size="sm", variant="outline-success", @click="addSubclass(_class)" style="border: 0;" pill)
b-btn.ml-1(size="sm", variant="outline-success", @click="addSubclass(_class); expanded = true" style="border: 0;" pill)
icon(name="plus")
div
div.pa-2(v-for="child in _class.children", style="background: rgba(0, 0, 0, 0);", v-show="expanded")
Expand Down

0 comments on commit 23b2074

Please sign in to comment.