2020-05-09 20:46:06 -07:00
|
|
|
import Modal from 'src/components/modal/modal.vue'
|
2020-05-25 06:11:05 -07:00
|
|
|
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'
|
2020-05-03 07:36:12 -07:00
|
|
|
|
|
|
|
const SettingsModal = {
|
|
|
|
components: {
|
|
|
|
Modal,
|
2020-05-25 06:11:05 -07:00
|
|
|
SettingsModalContent: getResettableAsyncComponent(
|
|
|
|
() => import('./settings_modal_content.vue'),
|
|
|
|
{
|
|
|
|
loading: BigSpinner,
|
|
|
|
error: ErrorWindow,
|
|
|
|
delay: 0,
|
|
|
|
timeout: 3000
|
|
|
|
}
|
|
|
|
)
|
2020-05-03 07:36:12 -07:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
modalActivated () {
|
|
|
|
return this.$store.state.interface.settingsModalState !== 'hidden'
|
2020-05-09 20:46:06 -07:00
|
|
|
},
|
|
|
|
modalPeeked () {
|
|
|
|
return this.$store.state.interface.settingsModalState === 'minimized'
|
2020-05-03 07:36:12 -07:00
|
|
|
}
|
2020-05-24 17:43:55 -07:00
|
|
|
}
|
2020-05-03 07:36:12 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export default SettingsModal
|