Improve settings-modal async loading, update vue to 2.6.11 to be able
to use Vue.observable, to implmement resettable async component
This commit is contained in:
parent
a6ca923a76
commit
7951192cd9
7 changed files with 110 additions and 9 deletions
41
src/components/error_window/error_window.vue
Normal file
41
src/components/error_window/error_window.vue
Normal file
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
<div class="error-window panel">
|
||||
<div class="panel-heading">
|
||||
<span class="title">
|
||||
{{ $t('general.generic_error') }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p>
|
||||
{{ $t('general.error_retry') }}
|
||||
</p>
|
||||
<button
|
||||
class="btn"
|
||||
@click="closeAllModals"
|
||||
>
|
||||
{{ $t('general.close') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
closeAllModals () {
|
||||
// TODO make a global hook to close all modals?
|
||||
this.$store.dispatch('closeSettingsModal')
|
||||
this.$emit('resetAsyncComponent')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.error-window {
|
||||
.btn {
|
||||
margin: .5em;
|
||||
padding: .5em 2em;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue