mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-18 12:40:41 +01:00
refactor: improved note tab selection
This commit is contained in:
parent
586f901bae
commit
8500fc40a1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user