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