This commit is contained in:
Henry Jameson 2021-03-08 21:03:55 +02:00
parent 395e12cbc6
commit 914b4eb593
3 changed files with 14 additions and 9 deletions

View File

@ -99,7 +99,7 @@ const SettingsModal = {
if (minor > PLEROMAFE_SETTINGS_MINOR_VERSION) { if (minor > PLEROMAFE_SETTINGS_MINOR_VERSION) {
this.$store.dispatch('pushGlobalNotice', { this.$store.dispatch('pushGlobalNotice', {
level: 'warning', level: 'warning',
messageKey: 'settings.file_export_import.errors.file_slightly_new', messageKey: 'settings.file_export_import.errors.file_slightly_new'
}) })
} }
@ -113,8 +113,7 @@ const SettingsModal = {
} }
}, },
onImport (data) { onImport (data) {
if (data) if (data) { this.$store.dispatch('loadSettings', data) }
this.$store.dispatch('loadSettings', data)
}, },
restore () { restore () {
console.log(this.dataImporter) console.log(this.dataImporter)

View File

@ -31,8 +31,8 @@
</transition> </transition>
<button <button
class="btn button-default" class="btn button-default"
@click="peekModal"
:title="$t('general.peek')" :title="$t('general.peek')"
@click="peekModal"
> >
<FAIcon <FAIcon
:icon="['far', 'window-minimize']" :icon="['far', 'window-minimize']"
@ -41,8 +41,8 @@
</button> </button>
<button <button
class="btn button-default" class="btn button-default"
@click="closeModal"
:title="$t('general.close')" :title="$t('general.close')"
@click="closeModal"
> >
<FAIcon <FAIcon
icon="times" icon="times"
@ -61,12 +61,12 @@
:offset="{ y: 5, x: 5 }" :offset="{ y: 5, x: 5 }"
:bound-to="{ x: 'container' }" :bound-to="{ x: 'container' }"
remove-padding remove-padding
> >
<button <button
slot="trigger" slot="trigger"
class="btn button-default" class="btn button-default"
:title="$t('general.close')" :title="$t('general.close')"
> >
<span>{{ $t("settings.file_export_import.backup_restore") }}</span> <span>{{ $t("settings.file_export_import.backup_restore") }}</span>
<FAIcon <FAIcon
icon="chevron-down" icon="chevron-down"

View File

@ -79,10 +79,16 @@
</label> </label>
</div> </div>
<div class="export-import"> <div class="export-import">
<button class="btn button-default" @click="importTheme"> <button
class="btn button-default"
@click="importTheme"
>
{{ $t(&quot;settings.import_theme&quot;) }} {{ $t(&quot;settings.import_theme&quot;) }}
</button> </button>
<button class="btn button-default" @click="exportTheme"> <button
class="btn button-default"
@click="exportTheme"
>
{{ $t(&quot;settings.export_theme&quot;) }} {{ $t(&quot;settings.export_theme&quot;) }}
</button> </button>
</div> </div>