fixed search settinggs cookie

This commit is contained in:
vabene1111 2021-05-30 21:02:32 +02:00
parent 9982cae7c3
commit 9f4eb91287
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -271,8 +271,8 @@ export default {
}, },
mounted() { mounted() {
this.$nextTick(function () { this.$nextTick(function () {
if (this.$cookies.isKey('search_settings')) { if (this.$cookies.isKey('search_settings_v2')) {
this.settings = this.$cookies.get("search_settings") this.settings = this.$cookies.get("search_settings_v2")
} }
this.loadMealPlan() this.loadMealPlan()
this.loadRecentlyViewed() this.loadRecentlyViewed()
@ -284,7 +284,7 @@ export default {
watch: { watch: {
settings: { settings: {
handler() { handler() {
this.$cookies.set("search_settings", this.settings, -1) this.$cookies.set("search_settings_v2", this.settings, -1)
}, },
deep: true deep: true
}, },