profile menu is modified

This commit is contained in:
병준 박 2020-01-03 17:53:51 +09:00
parent 3a58a47e1f
commit ec3e57200f
2 changed files with 63 additions and 18 deletions

View File

@ -322,22 +322,44 @@
</mat-toolbar> </mat-toolbar>
<mat-menu #profileMenu="matMenu" class="myset"> <mat-menu #profileMenu="matMenu" class="myset">
<div class="setting"><button mat-menu-item [matMenuTriggerFor]="presenseMenu">대화 가능</button></div> <div class="setting">
<button mat-menu-item [matMenuTriggerFor]="presenseMenu">대화 가능</button>
</div>
<div class="setting"><button mat-menu-item>상태 메시지 설정</button></div> <div class="setting"><button mat-menu-item>상태 메시지 설정</button></div>
<div class="setting"><button mat-menu-item>축소</button><span>100%</span><button mat-menu-item>확대</button></div> <div class="setting">
<div class="setting"><button mat-menu-item (click)="onClickSettings()">설정</button></div> <button mat-menu-item (click)="onClickZoomOut($event)">축소</button>
<span>100%</span>
<button mat-menu-item (click)="onClickZoomIn($event)">확대</button>
</div>
<div class="setting">
<button mat-menu-item (click)="onClickSettings()">설정</button>
</div>
<mat-divider></mat-divider> <mat-divider></mat-divider>
<div class="setting"><button mat-menu-item (click)="onClickLogout()">로그아웃</button></div> <div class="setting">
<button mat-menu-item (click)="onClickLogout()">로그아웃</button>
</div>
</mat-menu> </mat-menu>
<mat-menu #presenseMenu="matMenu" class="status-pc-set"> <mat-menu #presenseMenu="matMenu" class="status-pc-set">
<div class="setting"><button mat-menu-item><span class="presence pcOn"> </span>온라인</button></div> <div class="setting">
<div class="setting"><button mat-menu-item><span class="presence pcOut"> </span>부재중</button><button mat-menu-item <button mat-menu-item><span class="presence pcOn"> </span>온라인</button>
class="clock"></button></div> </div>
<div class="setting"><button mat-menu-item><span class="presence pcOther"> </span>다른용무중</button><button mat-menu-item <div class="setting">
class="edit"></button></div> <button mat-menu-item><span class="presence pcOut"> </span>부재중</button
<div class="setting"><button mat-menu-item><span class="presence pcOther"> </span>회의중</button><button mat-menu-item ><button mat-menu-item class="clock"></button>
class="edit"></button></div> </div>
<div class="setting"><button mat-menu-item><span class="presence pcOther"> </span>집중근무중</button><button mat-menu-item <div class="setting">
class="edit"></button></div> <button mat-menu-item>
<span class="presence pcOther"> </span>다른용무중</button
><button mat-menu-item class="edit"></button>
</div>
<div class="setting">
<button mat-menu-item><span class="presence pcOther"> </span>회의중</button
><button mat-menu-item class="edit"></button>
</div>
<div class="setting">
<button mat-menu-item>
<span class="presence pcOther"> </span>집중근무중</button
><button mat-menu-item class="edit"></button>
</div>
</mat-menu> </mat-menu>

View File

@ -1,4 +1,11 @@
import { Component, OnInit, Inject, OnDestroy } from '@angular/core'; import {
Component,
OnInit,
Inject,
OnDestroy,
ChangeDetectorRef,
ViewChild
} from '@angular/core';
import { import {
UCAP_NATIVE_SERVICE, UCAP_NATIVE_SERVICE,
NativeService, NativeService,
@ -47,6 +54,8 @@ import {
ProfileDialogData ProfileDialogData
} from '@app/layouts/messenger/dialogs/profile/profile.dialog.component'; } from '@app/layouts/messenger/dialogs/profile/profile.dialog.component';
import { DialogService } from '@ucap-webmessenger/ui'; import { DialogService } from '@ucap-webmessenger/ui';
import { DOCUMENT } from '@angular/common';
import { MatMenu } from '@angular/material';
@Component({ @Component({
selector: 'app-layout-native-top-bar', selector: 'app-layout-native-top-bar',
@ -70,6 +79,9 @@ export class TopBarComponent implements OnInit, OnDestroy {
WebLinkType = WebLinkType; WebLinkType = WebLinkType;
@ViewChild('profileMenu', { static: true })
profileMenu: MatMenu;
constructor( constructor(
private store: Store<any>, private store: Store<any>,
@Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService, @Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService,
@ -78,6 +90,8 @@ export class TopBarComponent implements OnInit, OnDestroy {
private sessionStorageService: SessionStorageService, private sessionStorageService: SessionStorageService,
private daesangApiService: DaesangApiService, private daesangApiService: DaesangApiService,
private daesangProtocolService: DaesangProtocolService, private daesangProtocolService: DaesangProtocolService,
private changeDetectorRef: ChangeDetectorRef,
@Inject(DOCUMENT) private document: Document,
private logger: NGXLogger private logger: NGXLogger
) {} ) {}
@ -252,9 +266,6 @@ export class TopBarComponent implements OnInit, OnDestroy {
// .subscribe(); // .subscribe();
event.preventDefault(); event.preventDefault();
this.logger.debug('onClickOpenProfile');
return;
// [Daesang] // [Daesang]
this.daesangProtocolService this.daesangProtocolService
.dataUserDaesang({ .dataUserDaesang({
@ -313,4 +324,16 @@ export class TopBarComponent implements OnInit, OnDestroy {
onClickUpdate() { onClickUpdate() {
this.store.dispatch(UpdateStore.applyInstantUpdate()); this.store.dispatch(UpdateStore.applyInstantUpdate());
} }
onClickZoomOut(event: Event) {
event.stopPropagation();
this.document.body.style.zoom = '80%';
}
onClickZoomIn(event: Event) {
event.stopPropagation();
this.document.body.style.zoom = '120%';
}
} }