From fe9d18fca41eb5f0f929f26baab3c0a8b2823930 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 2 Apr 2022 15:13:18 +0200 Subject: [PATCH] fix: reset blur hash before setting a new one to avoid flickering --- src/store/mutation-types.js | 1 - src/views/list/ListWrapper.vue | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js index 6d9707c4e..950789272 100644 --- a/src/store/mutation-types.js +++ b/src/store/mutation-types.js @@ -9,4 +9,3 @@ export const BACKGROUND = 'background' export const BLUR_HASH = 'blurHash' export const CONFIG = 'config' -export const AUTH = 'auth' diff --git a/src/views/list/ListWrapper.vue b/src/views/list/ListWrapper.vue index 1153dc7e6..228372421 100644 --- a/src/views/list/ListWrapper.vue +++ b/src/views/list/ListWrapper.vue @@ -55,7 +55,7 @@ import Message from '@/components/misc/message.vue' import ListModel from '@/models/list' import ListService from '@/services/list' -import {BACKGROUND, CURRENT_LIST} from '@/store/mutation-types' +import {BACKGROUND, BLUR_HASH, CURRENT_LIST} from '@/store/mutation-types' import {getListTitle} from '@/helpers/getListTitle' import {saveListToHistory} from '@/modules/listHistory' @@ -145,6 +145,7 @@ async function loadList(listIdToLoad: number) { const listFromStore = store.getters['lists/getListById'](listData.id) if (listFromStore !== null) { store.commit(BACKGROUND, null) + store.commit(BLUR_HASH, null) store.commit(CURRENT_LIST, listFromStore) }