Fix action links for pages

This commit is contained in:
SondreB 2023-01-06 15:09:31 +01:00
parent b2a17a5387
commit c70507a8aa
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF
3 changed files with 9 additions and 9 deletions

View File

@ -1,9 +1,9 @@
<mat-tab-group mat-align-tabs="center">
<mat-tab label="Messages">
Messages
COMING SOON!
</mat-tab>
<mat-tab label="Channels">
Channels
COMING SOON!
</mat-tab>
</mat-tab-group>

View File

@ -1,18 +1,16 @@
import { Component, ChangeDetectorRef } from '@angular/core';
import { ApplicationState } from '../services/applicationstate.service';
@Component({
selector: 'app-chat',
templateUrl: './chat.component.html',
styleUrls: ['./chat.component.css'],
})
export class ChatComponent {
constructor(
) {}
constructor(private appState: ApplicationState) {}
async ngOnInit() {
this.appState.title = 'Chat';
this.appState.goBack = true;
this.appState.actions = [];
}
}

View File

@ -31,6 +31,8 @@ export class NotesComponent {
ngOnInit() {
this.appState.title = 'Saved Notes';
this.appState.goBack = true;
this.appState.actions = [];
this.notesSub = this.notesService.notesChanged$.subscribe(async () => {
console.log('RELOADING NOTES!!!');