From 204e7dc04a7e75706fb89cfb1d165d517776b1ac Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Fri, 20 Sep 2019 18:50:13 -0400 Subject: [PATCH] [F] Move signOut() to the right place --- src/components/navigation/navigation.ts | 9 +++++++++ src/pages/overall/overall.ts | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/navigation/navigation.ts b/src/components/navigation/navigation.ts index 861ad02..6678b27 100644 --- a/src/components/navigation/navigation.ts +++ b/src/components/navigation/navigation.ts @@ -27,4 +27,13 @@ export default class Navigation extends Vue // Call custom event this.$emit('navigation:select', this.activeIndex); } + + /** + * This function is called when the sign out button is clicked. + */ + public signOut() + { + // Call custom event + this.$emit('sign-out'); + } } diff --git a/src/pages/overall/overall.ts b/src/pages/overall/overall.ts index d147629..ca498e8 100644 --- a/src/pages/overall/overall.ts +++ b/src/pages/overall/overall.ts @@ -148,13 +148,4 @@ export default class Overall extends Vue return result; } - - /** - * This function is called when the sign out button is clicked. - */ - public signOut() - { - // Call custom event - this.$emit('sign-out'); - } }