Minor update
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<user-settings (close)="userSettingsOpen.set(false)" />
|
||||
</ng-template>
|
||||
|
||||
@if (sessionManager.userData() == undefined) {
|
||||
@if (!sessionManager.sessionReady()) {
|
||||
<main style="width: 100%; height: 100svh; display: flex; justify-content: center; align-items: center;">
|
||||
<tui-loader size="xl" />
|
||||
</main>
|
||||
@@ -44,11 +44,10 @@
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
<!-- @switch (navigationActiveIndex) {
|
||||
@switch (navigationActiveIndex) {
|
||||
@case (0) {
|
||||
<app-dm-list [token]="serviceManager.currentSession()!.token"
|
||||
[userid]="serviceManager.currentSession()!.userData.userid"></app-dm-list>
|
||||
}
|
||||
<app-contact-list></app-contact-list>
|
||||
} <!--
|
||||
@case (1) {
|
||||
<network-list
|
||||
[(expandedSidenav)]="expandedSidenav"
|
||||
@@ -58,8 +57,8 @@
|
||||
@case (2) {
|
||||
<app-picture-list [token]="serviceManager.currentSession()!.token"
|
||||
[userid]="serviceManager.currentSession()!.userData.userid"></app-picture-list>
|
||||
}
|
||||
}-->
|
||||
}
|
||||
</main>
|
||||
</aside>
|
||||
|
||||
@@ -88,8 +87,8 @@
|
||||
<!--
|
||||
@switch (navigationActiveIndex) {
|
||||
@case (0) {
|
||||
<app-dm-list [token]="serviceManager.currentSession()!.token"
|
||||
[userid]="serviceManager.currentSession()!.userData.userid"></app-dm-list>
|
||||
<app-contact-list [token]="serviceManager.currentSession()!.token"
|
||||
[userid]="serviceManager.currentSession()!.userData.userid"></app-contact-list>
|
||||
}
|
||||
@case (1) {
|
||||
<network-list
|
||||
|
||||
@@ -4,7 +4,7 @@ import {TuiSegmented} from '@taiga-ui/kit';
|
||||
import {TUI_BREAKPOINT, TuiAppearance, TuiButton, TuiDialog, TuiGroup, TuiIcon, TuiLoader} from '@taiga-ui/core';
|
||||
import {LoadStatus, ServiceManager} from '../service-manager';
|
||||
import {IndexedDB} from '../storage/indexed-db';
|
||||
import {DmList} from './dm-list/dm-list';
|
||||
import {ContactList} from './contact-list/contact-list';
|
||||
import {JsonPipe} from '@angular/common';
|
||||
import {WebSocketHandler} from '@chatenium/chatenium-sdk/core/webSocketHandler';
|
||||
import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
||||
@@ -25,7 +25,7 @@ import { SessionManager } from '../session-manager';
|
||||
TuiIcon,
|
||||
TuiButton,
|
||||
TuiLoader,
|
||||
DmList,
|
||||
ContactList,
|
||||
JsonPipe,
|
||||
TuiAppearance,
|
||||
TuiGroup,
|
||||
|
||||
Reference in New Issue
Block a user