Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ export const state = () => ({
kusama: {
usd: null
}
}
},
layoutClass: 'is-one-third-desktop is-one-third-tablet'
})
export const mutations = {
keyringLoaded(state: any) {
Expand Down Expand Up @@ -211,7 +212,10 @@ export const mutations = {
},
setIndexerStatus(state: any, data : any) {
state.indexer = Object.assign({}, state.indexer, data)
}
},
setLayoutClass(state: any, data) {
state.layoutClass = data
},
}

export const actions = {
Expand All @@ -220,7 +224,10 @@ export const actions = {
},
upateIndexerStatus({ commit }: any, data : any) {
commit('setIndexerStatus', data)
}
},
setLayoutClass({ commit }: any, data) {
commit('setLayoutClass', data)
},
}

export const getters = {
Expand All @@ -230,7 +237,8 @@ export const getters = {
getUserLang: ({ language } : any) => language.userLang || 'en',
getCurrentKSMValue: ({ fiatPrice } : any) => fiatPrice['kusama']['usd'],
getCurrentChain: ({ explorer } : any) => explorer.chain,
getIndexer: ({ indexer } : any) => indexer
getIndexer: ({ indexer } : any) => indexer,
getLayoutClass: ({ layoutClass }) => layoutClass,
}

export const plugins = [vuexLocalStorage.plugin, apiPlugin, myPlugin ]