You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
780 B
TypeScript
34 lines
780 B
TypeScript
5 years ago
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||
|
import { ChatService } from '../../services/chat/chat.service'
|
||
|
import { ChatComponent } from '../chat/chat.component';
|
||
|
import { Chatinfo } from 'src/app/models/chatinfo';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'home-chatmanager',
|
||
|
templateUrl: './chatmanager.component.html',
|
||
|
styleUrls: ['./chatmanager.component.sass']
|
||
|
})
|
||
|
export class ChatmanagerComponent implements OnInit {
|
||
|
|
||
|
showChatlist: boolean = true
|
||
|
showChat: boolean = false
|
||
|
parentSelectedChat: Chatinfo
|
||
|
|
||
|
constructor() { }
|
||
|
|
||
|
ngOnInit() {
|
||
|
}
|
||
|
|
||
|
goBackToChatlist($event) {
|
||
|
this.showChatlist = $event
|
||
|
this.showChat = false
|
||
|
}
|
||
|
|
||
|
showSpecialChat($event) {
|
||
|
this.parentSelectedChat = $event
|
||
|
this.showChatlist = false
|
||
|
this.showChat = true
|
||
|
}
|
||
|
|
||
|
}
|