some minor fixes to get it to boot

This commit is contained in:
Henry Jameson 2021-04-24 18:04:35 +03:00
parent ced9c0fa7e
commit 509ec99574
4 changed files with 26 additions and 26 deletions

View File

@ -1,7 +1,7 @@
import { defineAsyncComponent } from 'vue'
import Modal from 'src/components/modal/modal.vue' import Modal from 'src/components/modal/modal.vue'
import PanelLoading from 'src/components/panel_loading/panel_loading.vue' import PanelLoading from 'src/components/panel_loading/panel_loading.vue'
import AsyncComponentError from 'src/components/async_component_error/async_component_error.vue' import AsyncComponentError from 'src/components/async_component_error/async_component_error.vue'
import getResettableAsyncComponent from 'src/services/resettable_async_component.js'
import Popover from '../popover/popover.vue' import Popover from '../popover/popover.vue'
import { library } from '@fortawesome/fontawesome-svg-core' import { library } from '@fortawesome/fontawesome-svg-core'
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
@ -51,14 +51,12 @@ const SettingsModal = {
components: { components: {
Modal, Modal,
Popover, Popover,
SettingsModalContent: getResettableAsyncComponent( SettingsModalContent: defineAsyncComponent({
() => import('./settings_modal_content.vue'), loader: () => import('./settings_modal_content.vue'),
{ loadingComponent: PanelLoading,
loading: PanelLoading, errorComponent: AsyncComponentError,
error: AsyncComponentError,
delay: 0 delay: 0
} })
)
}, },
methods: { methods: {
closeModal () { closeModal () {

View File

@ -11,6 +11,7 @@
{{ $t('settings.settings') }} {{ $t('settings.settings') }}
</span> </span>
<transition name="fade"> <transition name="fade">
<template>
<template v-if="currentSaveStateNotice"> <template v-if="currentSaveStateNotice">
<div <div
v-if="currentSaveStateNotice.error" v-if="currentSaveStateNotice.error"
@ -28,6 +29,7 @@
{{ $t('settings.saving_ok') }} {{ $t('settings.saving_ok') }}
</div> </div>
</template> </template>
</template>
</transition> </transition>
<button <button
class="btn button-default" class="btn button-default"

View File

@ -28,4 +28,4 @@
</div> </div>
</div> </div>
</template> </template>
<script src="./version_tab.js"> <script src="./version_tab.js" />

View File

@ -2,7 +2,7 @@
<div class="user-panel"> <div class="user-panel">
<div <div
v-if="signedIn" v-if="signedIn"
key="user-panel" key="user-panel-signed"
class="panel panel-default signed-in" class="panel panel-default signed-in"
> >
<UserCard <UserCard