fix: reset blur hash before setting a new one to avoid flickering
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
a21648b006
commit
fe9d18fca4
|
@ -9,4 +9,3 @@ export const BACKGROUND = 'background'
|
||||||
export const BLUR_HASH = 'blurHash'
|
export const BLUR_HASH = 'blurHash'
|
||||||
|
|
||||||
export const CONFIG = 'config'
|
export const CONFIG = 'config'
|
||||||
export const AUTH = 'auth'
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ import Message from '@/components/misc/message.vue'
|
||||||
import ListModel from '@/models/list'
|
import ListModel from '@/models/list'
|
||||||
import ListService from '@/services/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 {getListTitle} from '@/helpers/getListTitle'
|
||||||
import {saveListToHistory} from '@/modules/listHistory'
|
import {saveListToHistory} from '@/modules/listHistory'
|
||||||
|
@ -145,6 +145,7 @@ async function loadList(listIdToLoad: number) {
|
||||||
const listFromStore = store.getters['lists/getListById'](listData.id)
|
const listFromStore = store.getters['lists/getListById'](listData.id)
|
||||||
if (listFromStore !== null) {
|
if (listFromStore !== null) {
|
||||||
store.commit(BACKGROUND, null)
|
store.commit(BACKGROUND, null)
|
||||||
|
store.commit(BLUR_HASH, null)
|
||||||
store.commit(CURRENT_LIST, listFromStore)
|
store.commit(CURRENT_LIST, listFromStore)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user