diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-10 01:01:22 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-10 01:01:22 +0000 |
| commit | 4495c02c41b95ce6df0c34dbf6ac62f7addae7a3 (patch) | |
| tree | 39ebbc0e3f850bc602d3e90a1ab7bbbe9a6552c3 /stores | |
| parent | 9a11e0f4a38297006b89cc7bb2a60734111582e0 (diff) | |
Move selected state out of store and into route
Diffstat (limited to 'stores')
| -rw-r--r-- | stores/session.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/stores/session.ts b/stores/session.ts index 1cc8dc7..1938b63 100644 --- a/stores/session.ts +++ b/stores/session.ts @@ -78,12 +78,6 @@ export const useSessionStore = defineStore('session', { quests: [] as EditorQuest[], categories: [] as EditorCategory[], taskDefinitions: {} as { [key: string]: TaskDefinition }, - }, - editor: { - selected: { - type: '' as 'Quest' | 'Category' | null, - id: '' as string | null, - } } }), getters: { @@ -141,10 +135,6 @@ export const useSessionStore = defineStore('session', { // }) // this.editor.categories = categories; // }, - setEditorSelected(type: 'Quest' | 'Category' | null, id: string | null) { - this.editor.selected.type = type - this.editor.selected.id = id - }, setTaskDefinitions(definitions: { [key: string]: TaskDefinition }) { this.session.taskDefinitions = definitions }, |
