From ae4a681e67d8059c5a1aee34f6c14ade15b435d1 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Fri, 24 Nov 2023 16:05:42 -0300 Subject: [PATCH] Make mission name non-persistent This will force the user to set new mission names. --- src/stores/mission.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/mission.ts b/src/stores/mission.ts index 169868c25..23cc3366a 100644 --- a/src/stores/mission.ts +++ b/src/stores/mission.ts @@ -1,11 +1,11 @@ import { useStorage } from '@vueuse/core' import { defineStore } from 'pinia' -import { reactive } from 'vue' +import { reactive, ref } from 'vue' import type { Waypoint, WaypointCoordinates } from '@/types/mission' export const useMissionStore = defineStore('mission', () => { - const missionName = useStorage('cockpit-mission-name', '') + const missionName = ref('') const missionStartTime = useStorage('cockpit-mission-start-time', new Date()) const currentPlanningWaypoints = reactive([])