Started implementing Chatenium Pictures

This commit is contained in:
2026-04-12 17:40:51 +02:00
parent 62bc82f158
commit c56b0aab8a
17 changed files with 332 additions and 13 deletions

View File

@@ -12,6 +12,7 @@ import {TranslatePipe, TranslateService} from '@ngx-translate/core';
import {environment} from '../../environments/environment';
import {TuiTabBarComponent, TuiTabBarItem} from '@taiga-ui/addon-mobile';
import {NetworkList} from './network-list/network-list';
import {PictureList} from './picture-list/picture-list';
@Component({
selector: 'app-chat',
@@ -29,7 +30,8 @@ import {NetworkList} from './network-list/network-list';
TranslatePipe,
TuiTabBarComponent,
TuiTabBarItem,
NetworkList
NetworkList,
PictureList
],
templateUrl: './chat.html',
styleUrl: './chat.scss',
@@ -72,6 +74,8 @@ export class Chat implements OnInit {
async ngOnInit() {
if (this.router.url.startsWith("/chat/network")) {
this.navigationActiveIndex = 1
} else if (this.router.url.startsWith("/chat/picture")) {
this.navigationActiveIndex = 2
}
this.indexedDb.openDatabase().then(async () => {