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,22 +11,24 @@
{{ $t('settings.settings') }} {{ $t('settings.settings') }}
</span> </span>
<transition name="fade"> <transition name="fade">
<template v-if="currentSaveStateNotice"> <template>
<div <template v-if="currentSaveStateNotice">
v-if="currentSaveStateNotice.error" <div
class="alert error" v-if="currentSaveStateNotice.error"
@click.prevent class="alert error"
> @click.prevent
{{ $t('settings.saving_err') }} >
</div> {{ $t('settings.saving_err') }}
</div>
<div <div
v-if="!currentSaveStateNotice.error" v-if="!currentSaveStateNotice.error"
class="alert transparent" class="alert transparent"
@click.prevent @click.prevent
> >
{{ $t('settings.saving_ok') }} {{ $t('settings.saving_ok') }}
</div> </div>
</template>
</template> </template>
</transition> </transition>
<button <button

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