This commit is contained in:
leejinho 2020-01-03 18:05:26 +09:00
commit 4ed2fd0dd3
2 changed files with 40 additions and 6 deletions

View File

@ -327,9 +327,20 @@
</div> </div>
<div class="setting"><button mat-menu-item>상태 메시지 설정</button></div> <div class="setting"><button mat-menu-item>상태 메시지 설정</button></div>
<div class="setting"> <div class="setting">
<button mat-menu-item class="zoom minus-square">축소</button <button
mat-menu-item
class="zoom minus-square"
(click)="onClickZoomOut($event)"
>
축소</button
><span class="set-size">100%</span ><span class="set-size">100%</span
><button mat-menu-item class="zoom plus-square">확대</button> ><button
mat-menu-item
class="zoom plus-square"
(click)="onClickZoomIn($event)"
>
확대
</button>
</div> </div>
<div class="setting"> <div class="setting">
<button mat-menu-item (click)="onClickSettings()">설정</button> <button mat-menu-item (click)="onClickSettings()">설정</button>

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
) {} ) {}
@ -256,9 +270,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({
@ -317,4 +328,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%';
}
} }