2020-05-03 14:36:12 +00:00
|
|
|
<template>
|
2020-05-25 00:43:55 +00:00
|
|
|
<Modal
|
|
|
|
:is-open="modalActivated"
|
|
|
|
class="settings-modal"
|
|
|
|
:class="{ peek: modalPeeked }"
|
|
|
|
:no-background="modalPeeked"
|
2020-05-03 14:36:12 +00:00
|
|
|
>
|
2020-05-26 20:58:55 +00:00
|
|
|
<div class="settings-modal-panel panel">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<span class="title">
|
|
|
|
{{ $t('settings.settings') }}
|
|
|
|
</span>
|
|
|
|
<transition name="fade">
|
|
|
|
<template v-if="currentSaveStateNotice">
|
|
|
|
<div
|
|
|
|
v-if="currentSaveStateNotice.error"
|
|
|
|
class="alert error"
|
|
|
|
@click.prevent
|
|
|
|
>
|
|
|
|
{{ $t('settings.saving_err') }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="!currentSaveStateNotice.error"
|
|
|
|
class="alert transparent"
|
|
|
|
@click.prevent
|
|
|
|
>
|
|
|
|
{{ $t('settings.saving_ok') }}
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</transition>
|
|
|
|
<button
|
|
|
|
class="btn"
|
|
|
|
@click="peekModal"
|
|
|
|
>
|
|
|
|
{{ $t('general.peek') }}
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="btn"
|
|
|
|
@click="closeModal"
|
|
|
|
>
|
|
|
|
{{ $t('general.close') }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2020-06-01 22:10:52 +00:00
|
|
|
<SettingsModalContent v-if="modalOpenedOnce" />
|
2020-05-26 20:58:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-25 00:43:55 +00:00
|
|
|
</Modal>
|
2020-05-03 14:36:12 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./settings_modal.js"></script>
|
|
|
|
|
|
|
|
<style src="./settings_modal.scss" lang="scss"></style>
|