From 4b6be9f09ff56dfae1c719cb744f2312e11be317 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 12 Dec 2021 23:09:20 +0100 Subject: add group maker --- src/components/GroupMaker.vue | 79 +++++++++++++++++++++++++++++++++++++++++++ src/components/Searcher.vue | 4 +-- 2 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 src/components/GroupMaker.vue (limited to 'src/components') diff --git a/src/components/GroupMaker.vue b/src/components/GroupMaker.vue new file mode 100644 index 0000000..59f83fd --- /dev/null +++ b/src/components/GroupMaker.vue @@ -0,0 +1,79 @@ + + + diff --git a/src/components/Searcher.vue b/src/components/Searcher.vue index 43dd7bd..8488fd4 100644 --- a/src/components/Searcher.vue +++ b/src/components/Searcher.vue @@ -38,7 +38,7 @@ export default { let is_current_set = false Object.entries(this.commands).forEach((element) => { - if(element[0].startsWith(this.search)) { + if(element[0].startsWith(this.search) && element[1] instanceof Function) { sugestions.push(element) if(!is_current_set){ this.current = element @@ -62,7 +62,7 @@ export default { }, execute_current() { - let out = this.current[1]() + let out = this.current[1](this) if(out instanceof Object) { this.search = '' -- cgit v1.2.3