menu of profile is modified

This commit is contained in:
병준 박 2020-01-03 14:27:11 +09:00
parent d5132ec71a
commit bf2603f8ab
3 changed files with 8 additions and 25 deletions

View File

@ -219,8 +219,8 @@
<ucap-profile-my-profile-widget
[profileImageRoot]="sessionVerinfo.profileRoot"
[profileImageFile]="getMyProfileImageWidget()"
(openProfile)="onClickOpenProfile()"
class="myprofile"
(click)="onClickOpenProfile($event)"
class="myprofile button"
></ucap-profile-my-profile-widget>
</div>
<div class="app-layout-native-title-bar-actions">

View File

@ -224,7 +224,7 @@ export class TopBarComponent implements OnInit, OnDestroy {
}
}
onClickOpenProfile() {
onClickOpenProfile(event: Event) {
// [GROUP]
// this.queryProtocolService
// .dataUser({
@ -251,6 +251,9 @@ export class TopBarComponent implements OnInit, OnDestroy {
// )
// .subscribe();
this.logger.debug('onClickOpenProfile');
return;
// [Daesang]
this.daesangProtocolService
.dataUserDaesang({

View File

@ -1,10 +1,5 @@
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { UserInfo } from '@ucap-webmessenger/protocol-room';
import {
UserInfoSS,
UserInfoF,
UserInfoDN
} from '@ucap-webmessenger/protocol-query';
import { NGXLogger } from 'ngx-logger';
@Component({
selector: 'ucap-profile-my-profile-widget',
@ -17,22 +12,7 @@ export class MyProfileWidgetComponent implements OnInit {
@Input()
profileImageFile: string;
@Output()
openProfile = new EventEmitter<
UserInfo | UserInfoSS | UserInfoF | UserInfoDN
>();
constructor() {}
constructor(private logger: NGXLogger) {}
ngOnInit() {}
onClickOpenProfile(
event: MouseEvent,
userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN
) {
event.preventDefault();
event.stopPropagation();
this.openProfile.emit(userInfo);
}
}