From f1a1f890a6628b4ce11707b18c570d90e82bd21a Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Fri, 17 Dec 2021 01:24:49 +0100 Subject: add shortcuts command and repair bug --- src/components/group/GroupMaker.vue | 4 ++++ src/services/CommandsService.js | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/components/group/GroupMaker.vue b/src/components/group/GroupMaker.vue index 06963e3..28f39ba 100644 --- a/src/components/group/GroupMaker.vue +++ b/src/components/group/GroupMaker.vue @@ -81,6 +81,10 @@ export default { e.preventDefault() this.$emit('close') break + case 'Escape': + e.preventDefault() + this.$emit('close') + break } } }, diff --git a/src/services/CommandsService.js b/src/services/CommandsService.js index 181d50e..18ef243 100644 --- a/src/services/CommandsService.js +++ b/src/services/CommandsService.js @@ -35,6 +35,10 @@ export default { } }, + shortcuts() { + window.open('https://github.com/jdlugosz963/lom_frontend/blob/master/README.md', '_blank'); + }, + logout() { AuthService.logout() store.dispatch('logout') -- cgit v1.2.3