Skip to content

Commit

Permalink
Make mission name non-persistent
Browse files Browse the repository at this point in the history
This will force the user to set new mission names.
  • Loading branch information
rafaellehmkuhl committed Nov 24, 2023
1 parent 5527d5f commit ae4a681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/mission.ts
Original file line number Diff line number Diff line change
@@ -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<Waypoint[]>([])
Expand Down

0 comments on commit ae4a681

Please sign in to comment.