diff --git a/frontend/src/pages/Cache.vue b/frontend/src/pages/Cache.vue index 5409e0a..ef3f49a 100644 --- a/frontend/src/pages/Cache.vue +++ b/frontend/src/pages/Cache.vue @@ -145,16 +145,6 @@ //this.scrollToBottom(); }, methods: { - // ...mapMutations([ - // 'cacheCollector/SET_CACHE', - // 'cacheCollector/ADD_STATION', - // 'cacheCollector/REMOVE_STATION', - // 'cacheCollector/RESET_NEW_CACHE', - // 'cacheCollector/LOAD_REMOTE_CACHE' - // ]), - // swapComponent: function (component) { - // this.stationComponent = component; - // }, editEndStation() { console.log("editEndStation()"); const station = this.cache.endStation; @@ -202,7 +192,7 @@ let cache = this.cache; cache.stationen.push(this.endStation); - this.$axios.post('/api/createCache', this.cache) + this.$axios.post('/api/createCache', cache) .then((response) => { console.log("POST api/createCache: " + response.statusText); this.$store.commit('cacheCollector/RESET_NEW_CACHE'); diff --git a/frontend/src/pages/CacheStart.vue b/frontend/src/pages/CacheStart.vue index ec4394b..4619554 100644 --- a/frontend/src/pages/CacheStart.vue +++ b/frontend/src/pages/CacheStart.vue @@ -1,17 +1,38 @@