Move modal frame parts away from modal-content into modal, improve error handling
This commit is contained in:
parent
5187b37aca
commit
a8e013bd65
10 changed files with 190 additions and 178 deletions
|
@ -1,6 +1,6 @@
|
|||
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 PanelLoading from 'src/components/panel_loading/panel_loading.vue'
|
||||
import AsyncComponentError from 'src/components/async_component_error/async_component_error.vue'
|
||||
import getResettableAsyncComponent from 'src/services/resettable_async_component.js'
|
||||
|
||||
const SettingsModal = {
|
||||
|
@ -9,12 +9,20 @@ const SettingsModal = {
|
|||
SettingsModalContent: getResettableAsyncComponent(
|
||||
() => import('./settings_modal_content.vue'),
|
||||
{
|
||||
loading: BigSpinner,
|
||||
error: ErrorWindow,
|
||||
loading: PanelLoading,
|
||||
error: AsyncComponentError,
|
||||
delay: 0
|
||||
}
|
||||
)
|
||||
},
|
||||
methods: {
|
||||
closeModal () {
|
||||
this.$store.dispatch('closeSettingsModal')
|
||||
},
|
||||
peekModal () {
|
||||
this.$store.dispatch('togglePeekSettingsModal')
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
modalActivated () {
|
||||
return this.$store.state.interface.settingsModalState !== 'hidden'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue