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