From 334badd289dbff9664fe6fe6753779248524381b Mon Sep 17 00:00:00 2001 From: peterpeterparker Date: Thu, 19 Aug 2021 19:45:31 +0200 Subject: [PATCH] feat: remove sign in / out from side menu --- .../app/components/core/app-menu/app-menu.tsx | 47 +------------------ 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/studio/src/app/components/core/app-menu/app-menu.tsx b/studio/src/app/components/core/app-menu/app-menu.tsx index 2f6d71a26..2198cf024 100644 --- a/studio/src/app/components/core/app-menu/app-menu.tsx +++ b/studio/src/app/components/core/app-menu/app-menu.tsx @@ -1,15 +1,9 @@ import {Component, Element, Fragment, h} from '@stencil/core'; -import navStore from '../../../stores/nav.store'; import authStore from '../../../stores/auth.store'; -import {NavDirection} from '../../../stores/nav.store'; import i18n from '../../../stores/i18n.store'; -import {signIn} from '../../../utils/core/signin.utils'; - -import {AuthService} from '../../../services/auth/auth.service'; - -import { AppIcon } from '../app-icon/app-icon'; +import {AppIcon} from '../app-icon/app-icon'; @Component({ tag: 'app-menu', @@ -19,25 +13,6 @@ import { AppIcon } from '../app-icon/app-icon'; export class AppMenu { @Element() el: HTMLElement; - private authService: AuthService; - - constructor() { - this.authService = AuthService.getInstance(); - } - - private async signIn() { - signIn(); - } - - private async signOut() { - await this.authService.signOut(); - - navStore.state.nav = { - url: '/', - direction: NavDirection.RELOAD - }; - } - render() { return ( @@ -47,8 +22,6 @@ export class AppMenu { {this.renderSettings()} {this.renderInteract()} - - {this.renderSignInOut()} ); } @@ -74,24 +47,6 @@ export class AppMenu { ); } - private renderSignInOut() { - if (authStore.state.loggedIn) { - return ( - this.signOut()}> - - {i18n.state.nav.sign_out} - - ); - } else { - return ( - this.signIn()}> - - {i18n.state.nav.sign_in} - - ); - } - } - private renderInteract() { return (