2020-01-29 21:37:25 +02:00
|
|
|
<template>
|
2020-04-29 03:15:18 +03:00
|
|
|
<x-window ref="window" :width="366" :height="506" @closed="() => { $emit('closed'); destroyDom(); }">
|
2020-01-29 21:37:25 +02:00
|
|
|
<template #header>{{ $t('signup') }}</template>
|
2020-02-14 18:33:09 +02:00
|
|
|
<x-signup :auto-set="autoSet" @signup="onSignup"/>
|
2020-01-29 21:37:25 +02: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 18:33:09 +02:00
|
|
|
|
|
|
|
props: {
|
|
|
|
autoSet: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
onSignup(res) {
|
|
|
|
this.$emit('signup', res);
|
|
|
|
this.$refs.window.close();
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 21:37:25 +02:00
|
|
|
});
|
|
|
|
</script>
|