AC: Can manage loading states without implementing boilerplate store code Can use the Vue.$wait plugin in the context of a vue component Can start a loading context with $wait.start('loading-context') Can check the loading state of a context with $wait.is('loading-context') Can end a loading context with $wait.end('loading-context') Sources: https://github.com/f/vue-wait Change-Id: I4318729e5193bc362b4f13186d3f2f16dac90e8bmr9.1.1
parent
2617778ac9
commit
e0832ea3f1
@ -0,0 +1,9 @@
|
|||||||
|
import VueWait from 'vue-wait'
|
||||||
|
|
||||||
|
export default ({ Vue, app }) => {
|
||||||
|
Vue.use(VueWait)
|
||||||
|
app.wait = new VueWait({
|
||||||
|
useVuex: true,
|
||||||
|
registerDirective: true
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in new issue