From fef63e5ad2a54852f428cc8516530ffeed763151 Mon Sep 17 00:00:00 2001 From: Adam Hlavacek Date: Thu, 29 Aug 2024 18:38:16 +0200 Subject: [PATCH] fix(admin): temporarily disable achievements --- .../admin/admin-sidebar/admin-sidebar.component.html | 6 +++--- .../admin/admin-sidebar/admin-sidebar.component.ts | 5 +++-- .../page-admin-achievements.component.html | 4 ++++ .../page-admin-discussion.component.html | 2 ++ .../admin/page-admin-root/page-admin-root.component.html | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/app/components/admin/admin-sidebar/admin-sidebar.component.html b/src/app/components/admin/admin-sidebar/admin-sidebar.component.html index ba961a4..5d17fd3 100644 --- a/src/app/components/admin/admin-sidebar/admin-sidebar.component.html +++ b/src/app/components/admin/admin-sidebar/admin-sidebar.component.html @@ -15,9 +15,9 @@ {{'admin.navbar.discussion' | translate}} - - {{'admin.navbar.achievement' | translate}} - + + + {{'admin.navbar.instance-config' | translate}} diff --git a/src/app/components/admin/admin-sidebar/admin-sidebar.component.ts b/src/app/components/admin/admin-sidebar/admin-sidebar.component.ts index 663d8b2..df3c233 100644 --- a/src/app/components/admin/admin-sidebar/admin-sidebar.component.ts +++ b/src/app/components/admin/admin-sidebar/admin-sidebar.component.ts @@ -1,6 +1,6 @@ import { Component, OnInit, ChangeDetectionStrategy, OnDestroy } from '@angular/core'; import { IconService, RoutesService, UserService, WindowService } from '../../../services'; -import {BehaviorSubject, combineLatest, Observable, Subscription, timer} from 'rxjs'; +import {BehaviorSubject, combineLatest, Observable, Subscription} from 'rxjs'; import {filter, map, mergeMap} from 'rxjs/operators'; import { Router } from '@angular/router'; import { environment } from 'src/environments/environment'; @@ -26,6 +26,7 @@ export class AdminSidebarComponent implements OnInit, OnDestroy { ['waves/', 'Vlny'], ['execs/', 'Spuštění'], ['opravovani/', 'Opravování'], + ['achievements/', 'Trofeje'], ] constructor( @@ -37,7 +38,7 @@ export class AdminSidebarComponent implements OnInit, OnDestroy { ) { } ngOnInit(): void { - this._subs.push(this.userService.forceLogin$.pipe( // wait 3s to load auth status from cache + this._subs.push(this.userService.forceLogin$.pipe( mergeMap(() => this.userService.isTester$), filter((x) => !x) ).subscribe(() => { diff --git a/src/app/components/admin/page-admin-achievements/page-admin-achievements.component.html b/src/app/components/admin/page-admin-achievements/page-admin-achievements.component.html index 45b87c6..19fb1bf 100644 --- a/src/app/components/admin/page-admin-achievements/page-admin-achievements.component.html +++ b/src/app/components/admin/page-admin-achievements/page-admin-achievements.component.html @@ -3,6 +3,10 @@

{{'admin.achievements.title'|translate}}

+
+ ⚠️ WIP ⚠️ +
+ diff --git a/src/app/components/admin/page-admin-discussion/page-admin-discussion.component.html b/src/app/components/admin/page-admin-discussion/page-admin-discussion.component.html index db400e2..5c4e33b 100644 --- a/src/app/components/admin/page-admin-discussion/page-admin-discussion.component.html +++ b/src/app/components/admin/page-admin-discussion/page-admin-discussion.component.html @@ -5,6 +5,8 @@

{{'admin.discussion.title'|translate}}

+ + diff --git a/src/app/components/admin/page-admin-root/page-admin-root.component.html b/src/app/components/admin/page-admin-root/page-admin-root.component.html index 153cbf9..d26e97c 100644 --- a/src/app/components/admin/page-admin-root/page-admin-root.component.html +++ b/src/app/components/admin/page-admin-root/page-admin-root.component.html @@ -7,7 +7,7 @@

{{'admin.root.title'|translate}}

- +