From 6059533c3635684d8422c2bf1c12a975390af5b4 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Wed, 21 Oct 2020 17:02:01 +0200 Subject: [PATCH] move dev menu slider and show it only in dev mode env --- src/app/app.component.html | 6 +++++- src/app/app.component.ts | 8 +++----- src/app/core/components/header/header.component.scss | 3 +++ .../user-profile/user-polls/user-polls.component.ts | 4 +++- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 2f211c98..477450fe 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -6,10 +6,14 @@
- Dev Menu
+
+
+ menu + développeur +
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 3c89ed13..c4e0eb3d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -18,20 +18,18 @@ export class AppComponent implements OnInit, OnDestroy { public appLogo: string = environment.appLogo; public themeClass: string; public isSidebarOpened = false; + public devModeEnabled = !environment.production; private themeSubscription: Subscription; constructor( private titleService: Title, private themeService: ThemeService, - private languageService: LanguageService - ) // private mockingService: MockingService - {} + private languageService: LanguageService // private mockingService: MockingService + ) {} ngOnInit(): void { if (!environment.production) { this.appTitle += ' [DEV]'; - // TODO: to be removed - // this.mockingService.init(); } this.titleService.setTitle(this.appTitle); this.languageService.configureAndInitTranslations(); diff --git a/src/app/core/components/header/header.component.scss b/src/app/core/components/header/header.component.scss index 2e30e421..61220d68 100644 --- a/src/app/core/components/header/header.component.scss +++ b/src/app/core/components/header/header.component.scss @@ -1,5 +1,8 @@ :host { header { + nav { + padding-right: 1em; + } .container { padding: 0; } diff --git a/src/app/features/user-profile/user-polls/user-polls.component.ts b/src/app/features/user-profile/user-polls/user-polls.component.ts index ebe75b35..2d5a27ff 100644 --- a/src/app/features/user-profile/user-polls/user-polls.component.ts +++ b/src/app/features/user-profile/user-polls/user-polls.component.ts @@ -18,5 +18,7 @@ export class UserPollsComponent implements OnInit { ngOnInit(): void {} - sendRetrieveEmail() {} + sendRetrieveEmail() { + alert('TODO'); + } }