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