Sharkey/src/client/components/signin-dialog.vue

35 lines
595 B
Vue
Raw Normal View History

<template>
<x-window ref="window" @closed="() => { $emit('closed'); destroyDom(); }">
<template #header>{{ $t('login') }}</template>
2020-02-20 16:07:20 +02:00
<mk-signin :auto-set="autoSet" @login="onLogin"/>
</x-window>
</template>
<script lang="ts">
import Vue from 'vue';
import XWindow from './window.vue';
2020-02-20 16:07:20 +02:00
import MkSignin from './signin.vue';
export default Vue.extend({
components: {
2020-02-20 16:07:20 +02:00
MkSignin,
XWindow,
},
props: {
autoSet: {
type: Boolean,
required: false,
default: false,
}
},
methods: {
onLogin(res) {
this.$emit('login', res);
this.$refs.window.close();
}
}
});
</script>