From 796455126ef3f16f2f7a2f8e4001f5f8fbf6ec3c Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Dec 2018 00:40:29 +0900 Subject: [PATCH] Improve readability --- src/client/app/common/views/components/signin.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/app/common/views/components/signin.vue b/src/client/app/common/views/components/signin.vue index 9a12fba72..5deb3851b 100644 --- a/src/client/app/common/views/components/signin.vue +++ b/src/client/app/common/views/components/signin.vue @@ -26,6 +26,7 @@ import { toUnicode } from 'punycode'; export default Vue.extend({ i18n: i18n('common/views/components/signin.vue'), + props: { withAvatar: { type: Boolean, @@ -33,6 +34,7 @@ export default Vue.extend({ default: true } }, + data() { return { signing: false, @@ -45,11 +47,13 @@ export default Vue.extend({ meta: null }; }, + created() { this.$root.getMeta().then(meta => { this.meta = meta; }); }, + methods: { onUsernameChange() { this.$root.api('users/show', { @@ -60,6 +64,7 @@ export default Vue.extend({ this.user = null; }); }, + onSubmit() { this.signing = true;