mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 04:03:06 +00:00
Moved modal inside of settings component
This commit is contained in:
parent
3ac791a070
commit
79d73a6dfd
2 changed files with 16 additions and 18 deletions
|
@ -10,26 +10,16 @@
|
|||
{{ title }}
|
||||
</router-link>
|
||||
|
||||
<modal large title="Settings">
|
||||
<button
|
||||
:class="['small', { filled: darkModeEnabled, 'info filled': !darkModeEnabled }]"
|
||||
>
|
||||
<i class="fas fa-cog" />
|
||||
</button>
|
||||
|
||||
<settings slot="content" />
|
||||
</modal>
|
||||
<settings />
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Settings from '@/pages/Settings';
|
||||
import Modal from '@/components/Modal';
|
||||
import { mapState, mapGetters } from 'vuex';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Modal,
|
||||
Settings,
|
||||
},
|
||||
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
<template lang="html">
|
||||
<div class="settings" :class="{ dark: darkModeEnabled }">
|
||||
<general-settings v-model="localSettings" :reloading="reloading" />
|
||||
<platforms-settings v-model="localSettings" :reloading="reloading" />
|
||||
<game-board-settings v-model="localSettings" :reloading="reloading" />
|
||||
<tags-settings v-model="localSettings" :reloading="reloading" />
|
||||
<account-settings v-model="localSettings" :reloading="reloading" />
|
||||
</div>
|
||||
<modal title="Settings">
|
||||
<button
|
||||
:class="['small', { filled: darkModeEnabled, 'info filled': !darkModeEnabled }]"
|
||||
>
|
||||
<i class="fas fa-cog" />
|
||||
</button>
|
||||
|
||||
<div class="settings" slot="content" :class="{ dark: darkModeEnabled }">
|
||||
<general-settings v-model="localSettings" :reloading="reloading" />
|
||||
<platforms-settings v-model="localSettings" :reloading="reloading" />
|
||||
<game-board-settings v-model="localSettings" :reloading="reloading" />
|
||||
<tags-settings v-model="localSettings" :reloading="reloading" />
|
||||
<account-settings v-model="localSettings" :reloading="reloading" />
|
||||
</div>
|
||||
</modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue