From 4ac7ed7e0e9055d75006f4b75cd3e71a0412dec5 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 22 Sep 2020 10:37:16 +0200 Subject: [PATCH] Improve method signatures Signed-off-by: Thomas Citharel --- js/src/components/NavBar.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/src/components/NavBar.vue b/js/src/components/NavBar.vue index 872f6a93a..db75dd2a6 100644 --- a/js/src/components/NavBar.vue +++ b/js/src/components/NavBar.vue @@ -160,7 +160,7 @@ export default class NavBar extends Vue { mobileNavbarActive = false; @Watch("currentActor") - async initializeListOfIdentities() { + async initializeListOfIdentities(): Promise { if (!this.currentUser.isLoggedIn) return; const { data } = await this.$apollo.query<{ identities: IPerson[] }>({ query: IDENTITIES, @@ -182,7 +182,7 @@ export default class NavBar extends Vue { } } - async handleErrors(errors: GraphQLError[]) { + async handleErrors(errors: GraphQLError[]): Promise { if ( errors.length > 0 && errors[0].message === "You need to be logged-in to view your list of identities" @@ -191,7 +191,7 @@ export default class NavBar extends Vue { } } - async logout() { + async logout(): Promise { await logout(this.$apollo.provider.defaultClient); this.$buefy.notification.open({ message: this.$t("You have been disconnected") as string, @@ -204,7 +204,7 @@ export default class NavBar extends Vue { await this.$router.push({ name: RouteName.HOME }); } - async setIdentity(identity: IPerson) { + async setIdentity(identity: IPerson): Promise { await this.$apollo.mutate({ mutation: UPDATE_DEFAULT_ACTOR, variables: {