From 2c8f962889f9231238dbdaa5990f00646e8060f3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 17 Aug 2018 19:17:23 +0900 Subject: #2214 #2155 --- src/client/app/common/views/components/signup.vue | 15 ++++++++++++++- .../app/desktop/views/pages/admin/admin.dashboard.vue | 14 +++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/app/common/views/components/signup.vue b/src/client/app/common/views/components/signup.vue index 45a183e144..1d33702159 100644 --- a/src/client/app/common/views/components/signup.vue +++ b/src/client/app/common/views/components/signup.vue @@ -1,5 +1,10 @@ @@ -16,13 +20,21 @@ import Vue from "vue"; export default Vue.extend({ data() { return { - stats: null + stats: null, + inviteCode: null }; }, created() { (this as any).api('stats').then(stats => { this.stats = stats; }); + }, + methods: { + invite() { + (this as any).api('admin/invite').then(x => { + this.inviteCode = x.code; + }); + } } }); -- cgit v1.2.3-freya