32 lines
814 B
TypeScript
Raw Normal View History

import { Component, OnInit } from '@angular/core';
2020-02-10 17:06:01 +09:00
import { ucapAnimations, StatusBarService } from '@ucap-webmessenger/ui';
import { environment } from '../../../../environments/environment';
@Component({
2019-09-26 11:11:22 +09:00
selector: 'app-layout-messenger-intro',
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) {}
ngOnInit() {}
getTitle() {
return !!environment && !!environment.title
? environment.title
: 'UCapMessenger';
}
2020-02-10 17:06:01 +09:00
private toggle = false;
onClickStatusBar() {
if (!this.toggle) {
this.statusBarService.open();
} else {
this.statusBarService.dismiss();
}
this.toggle = !this.toggle;
}
}