From c481708ede4db8a08bac1677375a7f63213207e2 Mon Sep 17 00:00:00 2001 From: Evert Date: Fri, 8 Dec 2017 15:52:30 +0200 Subject: [PATCH] Move these functions, they don't need to be events --- src/script/component/User.vue | 41 ++++++++++++++++++++++++++++--- src/script/component/UserList.vue | 37 ---------------------------- 2 files changed, 38 insertions(+), 40 deletions(-) diff --git a/src/script/component/User.vue b/src/script/component/User.vue index 263015f..0ff30a4 100644 --- a/src/script/component/User.vue +++ b/src/script/component/User.vue @@ -26,13 +26,13 @@ i.fa.fa-fw.fa-ban | Ban User .separator - .action(v-if='!activated' v-on:click='$parent.$emit("activation", id)') + .action(v-if='!activated' v-on:click='activationToken') i.fa.fa-fw.fa-envelope | Activation Email - .action(v-if="totp_enabled" v-on:click='$parent.$emit("totp-revoke", id)') + .action(v-if="totp_enabled" v-on:click='totpRevoke') i.fa.fa-fw.fa-shield | Revoke 2FA - .action(v-on:click='$parent.$emit("reset-password", id)') + .action(v-on:click='resetPassword') i.fa.fa-fw.fa-envelope | Password Email @@ -54,6 +54,7 @@