Sharkey/src/client/app/desktop/views/components/settings-window.vue

33 lines
669 B
Vue
Raw Normal View History

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