Improve settings-modal async loading, update vue to 2.6.11 to be able
to use Vue.observable, to implmement resettable async component
This commit is contained in:
parent
a6ca923a76
commit
7951192cd9
7 changed files with 110 additions and 9 deletions
|
@ -1,9 +1,20 @@
|
|||
import Modal from 'src/components/modal/modal.vue'
|
||||
import BigSpinner from 'src/components/big_spinner/big_spinner.vue'
|
||||
import ErrorWindow from 'src/components/error_window/error_window.vue'
|
||||
import getResettableAsyncComponent from 'src/services/resettable_async_component.js'
|
||||
|
||||
const SettingsModal = {
|
||||
components: {
|
||||
Modal,
|
||||
SettingsModalContent: () => import('./settings_modal_content.vue')
|
||||
SettingsModalContent: getResettableAsyncComponent(
|
||||
() => import('./settings_modal_content.vue'),
|
||||
{
|
||||
loading: BigSpinner,
|
||||
error: ErrorWindow,
|
||||
delay: 0,
|
||||
timeout: 3000
|
||||
}
|
||||
)
|
||||
},
|
||||
computed: {
|
||||
modalActivated () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue