We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b12cc7 commit f895d97Copy full SHA for f895d97
src/renderer/store/snippets.ts
@@ -15,6 +15,10 @@ export const useSnippetStore = defineStore('snippets', {
15
} as State),
16
17
getters: {
18
+ snippetsNonDeleted: state =>
19
+ state.snippets.filter(i => !i.isDeleted) as SnippetWithFolder[],
20
+ snippetsDeleted: state =>
21
+ state.snippets.filter(i => i.isDeleted) as SnippetWithFolder[],
22
selectedId: state => state.snippet?.id,
23
currentContent: state => state.snippet?.content[state.fragment]?.value,
24
currentLanguage: state =>
0 commit comments