From 7e4a2e3e3a45f0dd302ab3b0e3ac49ad7189eba4 Mon Sep 17 00:00:00 2001
From: Daniel Weipert <code@drogueronin.de>
Date: Tue, 7 Nov 2023 23:47:37 +0100
Subject: Update

---
 app/src/pages/Steps/1-From.vue | 22 ++++------------------
 1 file changed, 4 insertions(+), 18 deletions(-)

(limited to 'app/src/pages/Steps/1-From.vue')

diff --git a/app/src/pages/Steps/1-From.vue b/app/src/pages/Steps/1-From.vue
index e1bd82e..c71894f 100644
--- a/app/src/pages/Steps/1-From.vue
+++ b/app/src/pages/Steps/1-From.vue
@@ -2,7 +2,7 @@
   <div>
     <h1>From</h1>
 
-    <Panel v-model="from" />
+    <Panel v-model="store.from" />
 
     <router-link to="/steps/2">
       next
@@ -10,23 +10,9 @@
   </div>
 </template>
 
-<script>
+<script setup>
+import { useStore } from '~/store';
 import Panel from '~/components/Panel';
 
-export default {
-  components: {
-    Panel,
-  },
-
-  computed: {
-    from: {
-      set (value) {
-        this.$store.commit('setFrom', value);
-      },
-      get () {
-        return this.$store.state.from;
-      },
-    },
-  },
-};
+const store = useStore();
 </script>
-- 
cgit v1.2.3

