From 4495c02c41b95ce6df0c34dbf6ac62f7addae7a3 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 10 Mar 2024 01:01:22 +0000 Subject: Move selected state out of store and into route --- stores/session.ts | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'stores') 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 }, -- cgit v1.2.3-70-g09d2