2019-09-23 14:23:24 +09:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2020-02-10 17:06:01 +09:00
|
|
|
import { ucapAnimations, StatusBarService } from '@ucap-webmessenger/ui';
|
2019-12-24 10:32:02 +09:00
|
|
|
import { environment } from '../../../../environments/environment';
|
2019-09-23 14:23:24 +09:00
|
|
|
|
|
|
|
@Component({
|
2019-09-26 11:11:22 +09:00
|
|
|
selector: 'app-layout-messenger-intro',
|
2019-09-23 14:23:24 +09:00
|
|
|
templateUrl: './intro.component.html',
|
|
|
|
styleUrls: ['./intro.component.scss'],
|
|
|
|
animations: ucapAnimations
|
|
|
|
})
|
|
|
|
export class IntroComponent implements OnInit {
|
2020-02-10 17:06:01 +09:00
|
|
|
constructor(private statusBarService: StatusBarService) {}
|
2019-09-23 14:23:24 +09:00
|
|
|
|
|
|
|
ngOnInit() {}
|
2019-12-24 10:32:02 +09:00
|
|
|
|
|
|
|
getTitle() {
|
|
|
|
return !!environment && !!environment.title
|
|
|
|
? environment.title
|
|
|
|
: 'UCapMessenger';
|
|
|
|
}
|
2020-02-10 17:06:01 +09:00
|
|
|
|
|
|
|
private toggle = false;
|
|
|
|
onClickStatusBar() {
|
|
|
|
if (!this.toggle) {
|
2020-02-10 17:06:34 +09:00
|
|
|
this.statusBarService.open('');
|
2020-02-10 17:06:01 +09:00
|
|
|
} else {
|
|
|
|
this.statusBarService.dismiss();
|
|
|
|
}
|
|
|
|
this.toggle = !this.toggle;
|
|
|
|
}
|
2019-09-23 14:23:24 +09:00
|
|
|
}
|