From 2c8f962889f9231238dbdaa5990f00646e8060f3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 17 Aug 2018 19:17:23 +0900 Subject: #2214 #2155 --- .../app/desktop/views/pages/admin/admin.dashboard.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/client/app/desktop') diff --git a/src/client/app/desktop/views/pages/admin/admin.dashboard.vue b/src/client/app/desktop/views/pages/admin/admin.dashboard.vue index b10e829965..d0f11e73b6 100644 --- a/src/client/app/desktop/views/pages/admin/admin.dashboard.vue +++ b/src/client/app/desktop/views/pages/admin/admin.dashboard.vue @@ -7,6 +7,10 @@

%i18n:@all-notes%: {{ stats.notesCount | number }}

%i18n:@original-notes%: {{ stats.originalNotesCount | number }}

+
+ +

Code: {{ inviteCode }}

+
@@ -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.3.1-freya