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) {
this.$store.dispatch('pushGlobalNotice', {
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) {
if (data)
this.$store.dispatch('loadSettings', data)
if (data) { this.$store.dispatch('loadSettings', data) }
},
restore () {
console.log(this.dataImporter)

View file

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

View file

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