mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 10:23:08 +02:00
38 lines
628 B
Vue
38 lines
628 B
Vue
|
<template>
|
||
|
<x-window ref="window" @closed="() => { $emit('closed'); destroyDom(); }">
|
||
|
<template #header>{{ $t('login') }}</template>
|
||
|
<x-signin :auto-set="autoSet" @login="onLogin"/>
|
||
|
</x-window>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import Vue from 'vue';
|
||
|
import i18n from '../i18n';
|
||
|
import XWindow from './window.vue';
|
||
|
import XSignin from './signin.vue';
|
||
|
|
||
|
export default Vue.extend({
|
||
|
i18n,
|
||
|
|
||
|
components: {
|
||
|
XSignin,
|
||
|
XWindow,
|
||
|
},
|
||
|
|
||
|
props: {
|
||
|
autoSet: {
|
||
|
type: Boolean,
|
||
|
required: false,
|
||
|
default: false,
|
||
|
}
|
||
|
},
|
||
|
|
||
|
methods: {
|
||
|
onLogin(res) {
|
||
|
this.$emit('login', res);
|
||
|
this.$refs.window.close();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
</script>
|