aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/settings_modal.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-05-25 16:11:05 +0300
committerHenry Jameson <me@hjkos.com>2020-05-25 16:11:05 +0300
commit7951192cd98263a2e5c9e1010f1299c651f82cef (patch)
tree771dc48c3f6a480c752257d59eb8d09636b59f7a /src/components/settings_modal/settings_modal.js
parenta6ca923a7695477f57367bf3dd95bdf41a4b64a4 (diff)
Improve settings-modal async loading, update vue to 2.6.11 to be able
to use Vue.observable, to implmement resettable async component
Diffstat (limited to 'src/components/settings_modal/settings_modal.js')
-rw-r--r--src/components/settings_modal/settings_modal.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/settings_modal/settings_modal.js b/src/components/settings_modal/settings_modal.js
index d38c5751..60d14649 100644
--- a/src/components/settings_modal/settings_modal.js
+++ b/src/components/settings_modal/settings_modal.js
@@ -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 () {