ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix admin welcome modal show check
Chocobozzz488b89433f73
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.tsindex 3d5d68039b..a83f2e2e26 100644--- a/client/src/app/app.component.ts+++ b/client/src/app/app.component.ts@@ -79,6 +79,7 @@ export class AppComponent implements OnInit, AfterViewInit {hotkeysModalOpened = falseprivate serverConfig: HTMLServerConfig+ private userLoaded = falseconstructor (@Inject(DOCUMENT) private document: Document,@@ -267,7 +268,10 @@ export class AppComponent implements OnInit, AfterViewInit {private listenUserChangeForModals () {this.authService.userInformationLoaded.pipe(map(() => this.authService.getUser()))- .subscribe(user => this.openModalsIfNeeded(user))+ .subscribe(user => {+ this.userLoaded = true+ this.openModalsIfNeeded(user)+ })}onModalCreated () {@@ -278,6 +282,8 @@ export class AppComponent implements OnInit, AfterViewInit {}private openModalsIfNeeded (user: User) {+ if (!this.userLoaded) return+if (user.role.id === UserRole.ADMINISTRATOR) {this.openAdminModalsIfNeeded(user)} else {diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scssindex 4f6097fea6..7cad4928ce 100644--- a/client/src/app/menu/menu.component.scss+++ b/client/src/app/menu/menu.component.scss@@ -57,7 +57,7 @@overflow: hidden;width: 100%;height: 100%;- max-height: calc(100% - 50px); // Space for links below the menu+ max-height: calc(100% - 75px); // Space for links below the menu}.main-menu-scrollbar {diff --git a/client/src/app/shared/shared-main/menu/horizontal-menu.component.scss b/client/src/app/shared/shared-main/menu/horizontal-menu.component.scssindex 16a684890e..499276f279 100644--- a/client/src/app/shared/shared-main/menu/horizontal-menu.component.scss+++ b/client/src/app/shared/shared-main/menu/horizontal-menu.component.scss@@ -4,7 +4,7 @@.root {width: 100%;- margin-bottom: 2rem;+ @include rfs(2.5rem, margin-bottom);}h1 {@@ -98,8 +98,6 @@ h1 {.children-container {margin-top: 1.25rem;- @include rfs(margin-bottom, 2.5rem);-::ng-deep li {white-space: nowrap;