diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 0d932ed0f..fccff58d9 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -268,6 +268,7 @@ export class AppComponent implements OnInit, OnDestroy, AfterViewInit { } this.store$.dispatch(new hyp3Store.LoadCosts()); + this.store$.dispatch(new hyp3Store.LoadUser()); } ) ); diff --git a/src/app/components/header/header-buttons/preferences/preferences.component.html b/src/app/components/header/header-buttons/preferences/preferences.component.html index 26f9e710a..8f924f148 100644 --- a/src/app/components/header/header-buttons/preferences/preferences.component.html +++ b/src/app/components/header/header-buttons/preferences/preferences.component.html @@ -71,16 +71,16 @@ {{ 'DEFAULT_MAP_LAYER' | translate }} - - - {{ mapLayerTypes.SATELLITE | uppercase | translate }} - - - {{ mapLayerTypes.STREET | uppercase | translate }} - - + + + {{ mapLayerTypes.SATELLITE | uppercase | translate }} + + + {{ mapLayerTypes.STREET | uppercase | translate }} + + @@ -120,6 +120,27 @@ refresh + @if(!this.env.isProd) { + + Debug Status + + + NOT_STARTED + + + PENDING + + + APPROVED + + + REJECTED + + + + } diff --git a/src/app/components/header/header-buttons/preferences/preferences.component.ts b/src/app/components/header/header-buttons/preferences/preferences.component.ts index 39b13bf08..5cb15078f 100644 --- a/src/app/components/header/header-buttons/preferences/preferences.component.ts +++ b/src/app/components/header/header-buttons/preferences/preferences.component.ts @@ -2,6 +2,7 @@ import {Component, EventEmitter, OnDestroy, OnInit, Output} from '@angular/core' import { Store } from '@ngrx/store'; import { AppState } from '@store'; import * as userStore from '@store/user'; +import * as hyp3Store from '@store/hyp3'; import { MatDialogRef } from '@angular/material/dialog'; import { @@ -34,6 +35,7 @@ export class PreferencesComponent implements OnInit, OnDestroy { public defaultMaxConcurrentDownloads: number; public defaultProductTypes: ProductType[]; public hyp3BackendUrl: string; + public hyp3DebugStatus: string; public defaultLanguage: string; public maxResults = [250, 1000, 5000]; @@ -63,6 +65,7 @@ export class PreferencesComponent implements OnInit, OnDestroy { private dialogRef: MatDialogRef, private store$: Store, private hyp3: Hyp3Service, + public env: services.EnvironmentService, private themeService: ThemingService, public translate: TranslateService, public language: AsfLanguageService, @@ -186,6 +189,10 @@ export class PreferencesComponent implements OnInit, OnDestroy { this.setTheme(`theme-${this.currentTheme}`); } } + public onDebugStatus(status: models.ApplicationStatus) { + this.hyp3DebugStatus = status; + this.store$.dispatch(new hyp3Store.SetDebugStatus(status)) + } public setTheme(themeName: string) { this.themeService.setTheme(themeName); diff --git a/src/app/components/header/processing-queue/processing-queue-jobs/processing-queue-jobs.component.html b/src/app/components/header/processing-queue/processing-queue-jobs/processing-queue-jobs.component.html index 5167bd16a..bb52b154b 100644 --- a/src/app/components/header/processing-queue/processing-queue-jobs/processing-queue-jobs.component.html +++ b/src/app/components/header/processing-queue/processing-queue-jobs/processing-queue-jobs.component.html @@ -91,7 +91,7 @@
- {{ 'YOUR_JOBS_QUEUE_IS_EMPTY' | translate }}. + {{ 'YOUR_JOBS_QUEUE_IS_EMPTY' | translate }}