@@ -54,6 +54,8 @@ import 'vue-awesome/icons/trash';
5454import ' vue-awesome/icons/plus' ;
5555import ' vue-awesome/icons/edit' ;
5656
57+ import _ from ' lodash' ;
58+
5759export default {
5860 name: ' CategoryEditTree' ,
5961 props: {
@@ -75,14 +77,14 @@ export default {
7577 };
7678 },
7779 computed: {
78- allCategories : function () {
80+ allCategories : function () {
7981 const categories = this .$store .getters [' settings/all_categories' ];
8082 const entries = categories .map (c => {
8183 return { text: c .join (' ->' ), value: c };
8284 });
8385 return [{ value: [], text: ' None' }].concat (entries);
8486 },
85- allRuleTypes : function () {
87+ allRuleTypes : function () {
8688 return [
8789 { value: null , text: ' None' },
8890 { value: ' regex' , text: ' Regular Expression' },
@@ -91,13 +93,13 @@ export default {
9193 },
9294 },
9395 methods: {
94- addSubclass : function (parent ) {
96+ addSubclass : function (parent ) {
9597 this .$store .commit (' settings/addClass' , {
9698 name: parent .name .concat ([' New class' ]),
9799 rule: { type: ' regex' , regex: ' FILL ME' },
98100 });
99101 },
100- removeClass : function (_class ) {
102+ removeClass : function (_class ) {
101103 // TODO: Show a confirmation dialog
102104 // TODO: Remove children as well?
103105 // TODO: Move button to edit modal?
0 commit comments