pleroma-fe/src/components/settings_modal/settings_modal.js

29 lines
792 B
JavaScript
Raw Normal View History

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'
2020-05-04 00:36:12 +10:00
const SettingsModal = {
components: {
Modal,
SettingsModalContent: getResettableAsyncComponent(
() => import('./settings_modal_content.vue'),
{
loading: BigSpinner,
error: ErrorWindow,
2020-05-25 23:32:32 +10:00
delay: 0
}
)
2020-05-04 00:36:12 +10:00
},
computed: {
modalActivated () {
return this.$store.state.interface.settingsModalState !== 'hidden'
},
modalPeeked () {
return this.$store.state.interface.settingsModalState === 'minimized'
2020-05-04 00:36:12 +10:00
}
2020-05-25 10:43:55 +10:00
}
2020-05-04 00:36:12 +10:00
}
export default SettingsModal