feat: enable / disable authorization

This commit is contained in:
liyasthomas
2021-08-12 13:56:11 +05:30
parent 971b35a252
commit b18f7af28f
12 changed files with 172 additions and 108 deletions

View File

@@ -92,10 +92,10 @@ export default {
},
computed: {
filteredMappings() {
return this.mappings.filter((map) =>
map.shortcuts.find((shortcut) =>
shortcut.keywords.find((key) =>
key.includes(this.search.toLowerCase())
return this.mappings.filter((mapping) =>
mapping.shortcuts.some((shortcut) =>
shortcut.keywords.some((keyword) =>
keyword.toLowerCase().includes(this.search.toLowerCase())
)
)
)