1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-15 05:45:42 +02:00
Files
misskey/src/client/components/signup-dialog.vue
syuilo 7e9cee85b3 wip
2020-07-24 03:15:32 +09:00

35 lines
645 B
Vue

<template>
<x-window ref="window" :width="366" :height="506" @closed="() => { $emit('closed'); destroyDom(); }">
<template #header>{{ $t('signup') }}</template>
<x-signup :auto-set="autoSet" @signup="onSignup"/>
</x-window>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import XWindow from './window.vue';
import XSignup from './signup.vue';
export default defineComponent({
components: {
XSignup,
XWindow,
},
props: {
autoSet: {
type: Boolean,
required: false,
default: false,
}
},
methods: {
onSignup(res) {
this.$emit('signup', res);
this.$refs.window.close();
}
}
});
</script>