-
-
Save jeremywynn/d0c416224c4724868c6f4dd7819e4d28 to your computer and use it in GitHub Desktop.
Before any necessary adjustments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const state = () => ({ | |
// Loading | |
loading: false, | |
}); | |
export const mutations = { | |
// Loading | |
END_BUSY_STATE(state) { | |
state.loading = false; | |
}, | |
START_BUSY_STATE(state) { | |
state.loading = true; | |
}, | |
}; | |
export const actions = { | |
// Loading | |
stopBusyState({ commit }) { | |
commit("END_BUSY_STATE"); | |
}, | |
triggerBusyState({ commit }) { | |
commit("START_BUSY_STATE"); | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment