refactor: improved note tab selection

This commit is contained in:
Fabio Di Stasio 2024-02-26 18:17:15 +01:00
parent 586f901bae
commit 8500fc40a1
1 changed files with 3 additions and 4 deletions

View File

@ -55,10 +55,9 @@ export const useApplicationStore = defineStore('application', {
},
showScratchpad (tag?: string) {
this.isScratchpad = true;
if (tag) {
const { selectedTag } = storeToRefs(useScratchpadStore());
selectedTag.value = tag;
}
if (!tag) tag = 'all';
const { selectedTag } = storeToRefs(useScratchpadStore());
selectedTag.value = tag;
},
hideScratchpad () {
this.isScratchpad = false;