mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
incorrect seen context update -- fixed vue-store mutation
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
9244e8f58e
commit
5c8dd89a88
@ -31,9 +31,7 @@ Vue.mixin({
|
|||||||
// any initialization we want to do for app state
|
// any initialization we want to do for app state
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await when(() => userStore.isReady);
|
await when(() => userStore.isReady);
|
||||||
|
|
||||||
await store.dispatch('init')
|
await store.dispatch('init')
|
||||||
console.log("start vue")
|
|
||||||
new Vue({
|
new Vue({
|
||||||
components: { App },
|
components: { App },
|
||||||
store,
|
store,
|
||||||
|
|||||||
@ -30,9 +30,9 @@ export default new Vuex.Store({
|
|||||||
lastSeenAppVersion: userStore.lastSeenAppVersion,
|
lastSeenAppVersion: userStore.lastSeenAppVersion,
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
storeSeenContexts(state, context) {
|
storeSeenContexts(state, contexts) {
|
||||||
userStore.seenContexts.add(context);
|
contexts.forEach(ctx => userStore.seenContexts.add(ctx));
|
||||||
state.seenContexts = Array.from(userStore.seenContexts);
|
state.seenContexts = contexts;
|
||||||
},
|
},
|
||||||
updateLastSeenAppVersion(state, appVersion) {
|
updateLastSeenAppVersion(state, appVersion) {
|
||||||
state.lastSeenAppVersion = appVersion;
|
state.lastSeenAppVersion = appVersion;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user