Error box, download button, editor save and more.
Former-commit-id: c14972384cc8afad28d49388b0b4545669e20b7d [formerly 0af2e5f9aff2aac576044ca9590045f656fbffda] [formerly 02248a86b7063e1c9d6779c3574a848708ff86f2 [formerly efaa8439a9dbbf9b829cf9fc32ca789c2a16df7d]] Former-commit-id: 4ce0a81ea04b56cef11d62107d692502e266a16e [formerly 2c46db9398c267351c10f06c089ed08dc3625232] Former-commit-id: 1c93a0643217ab69668600b41e2d8263266d7e23
This commit is contained in:
@@ -13,7 +13,8 @@ const state = {
|
||||
reload: false,
|
||||
selected: [],
|
||||
multiple: false,
|
||||
show: null
|
||||
show: null,
|
||||
showMessage: null
|
||||
}
|
||||
|
||||
export default new Vuex.Store({
|
||||
|
||||
@@ -1,6 +1,21 @@
|
||||
const mutations = {
|
||||
closeHovers: state => { state.show = null },
|
||||
showHover: (state, value) => { state.show = value },
|
||||
closeHovers: state => {
|
||||
state.show = null
|
||||
state.showMessage = null
|
||||
},
|
||||
showHover: (state, value) => {
|
||||
if (typeof value !== 'object') {
|
||||
state.show = value
|
||||
return
|
||||
}
|
||||
|
||||
state.show = value.prompt
|
||||
state.showMessage = value.message
|
||||
},
|
||||
showError: (state, value) => {
|
||||
state.show = 'error'
|
||||
state.showMessage = value
|
||||
},
|
||||
setReload: (state, value) => { state.reload = value },
|
||||
setUser: (state, value) => (state.user = value),
|
||||
setJWT: (state, value) => (state.jwt = value),
|
||||
|
||||
Reference in New Issue
Block a user