2018-02-13 08:24:44 +09:00
|
|
|
<template>
|
2018-09-18 05:35:06 +09:00
|
|
|
<mk-window ref="window" is-modal width="700px" height="550px" @closed="destroyDom">
|
2018-11-09 03:44:35 +09:00
|
|
|
<span slot="header" :class="$style.header"><fa icon="cog"/>{{ $t('settings') }}</span>
|
2018-11-13 20:21:52 +09:00
|
|
|
<x-settings :initial-page="initialPage" @done="close"/>
|
2018-02-13 08:24:44 +09:00
|
|
|
</mk-window>
|
|
|
|
</template>
|
|
|
|
|
2018-02-18 23:51:41 +09:00
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-09 03:44:35 +09:00
|
|
|
import i18n from '../../../i18n';
|
2018-11-13 20:21:52 +09:00
|
|
|
|
2018-02-23 02:06:35 +09:00
|
|
|
export default Vue.extend({
|
2018-11-09 03:44:35 +09:00
|
|
|
i18n: i18n('desktop/views/components/settings-window.vue'),
|
2018-11-13 20:21:52 +09:00
|
|
|
|
|
|
|
components: {
|
|
|
|
XSettings: () => import('./settings.vue').then(m => m.default)
|
|
|
|
},
|
|
|
|
|
2018-09-17 09:00:20 +09:00
|
|
|
props: {
|
|
|
|
initialPage: {
|
|
|
|
type: String,
|
|
|
|
required: false
|
|
|
|
}
|
|
|
|
},
|
2018-02-23 02:06:35 +09:00
|
|
|
methods: {
|
|
|
|
close() {
|
|
|
|
(this as any).$refs.window.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2018-02-18 23:51:41 +09:00
|
|
|
</script>
|
|
|
|
|
2018-02-13 08:24:44 +09:00
|
|
|
<style lang="stylus" module>
|
|
|
|
.header
|
2018-11-06 01:40:11 +09:00
|
|
|
> [data-icon]
|
2018-02-13 08:24:44 +09:00
|
|
|
margin-right 4px
|
|
|
|
|
|
|
|
</style>
|