프로필 이미지 업로드 옵션처리.

This commit is contained in:
leejinho 2019-12-18 10:46:42 +09:00
parent 0233ef4117
commit 76a66088bd
9 changed files with 25 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<ucap-profile-profile
[userInfo]="userInfo"
[profileImageRoot]="sessionVerinfo.profileRoot"
[editableProfileImage]="editableProfileImage"
[isMe]="isMe"
[myMadn]="loginRes.madn"
[isBuddy]="isBuddy"

View File

@ -50,6 +50,7 @@ import {
import { NGXLogger } from 'ngx-logger';
import { SmsUtils } from '@ucap-webmessenger/daesang';
import { NativeService, UCAP_NATIVE_SERVICE } from '@ucap-webmessenger/native';
import { environment } from '../../../../../environments/environment';
export interface ProfileDialogData {
userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN;
@ -71,6 +72,7 @@ export class ProfileDialogComponent implements OnInit, OnDestroy {
isMe: boolean;
isBuddy: boolean;
isFavorit: boolean;
editableProfileImage: boolean;
selectAllBuddy2Subscription: Subscription;
@ -97,6 +99,9 @@ export class ProfileDialogComponent implements OnInit, OnDestroy {
);
this.userInfo = data.userInfo;
this.editableProfileImage =
environment.productConfig.CommonSetting.editableProfileImage;
}
ngOnInit() {

View File

@ -50,6 +50,9 @@ export const environment: Environment = {
notification: {
chatMessage: true
}
},
CommonSetting: {
editableProfileImage: false
}
},

View File

@ -50,6 +50,9 @@ export const environment: Environment = {
notification: {
chatMessage: true
}
},
CommonSetting: {
editableProfileImage: false
}
},

View File

@ -50,6 +50,9 @@ export const environment: Environment = {
notification: {
chatMessage: true
}
},
CommonSetting: {
editableProfileImage: true
}
},

View File

@ -50,6 +50,9 @@ export const environment: Environment = {
notification: {
chatMessage: true
}
},
CommonSetting: {
editableProfileImage: true
}
},

View File

@ -62,6 +62,10 @@ export interface Environment {
intervalHour: number;
};
defaultSettings: Settings;
CommonSetting: {
editableProfileImage: boolean;
};
};
customConfig?: any;

View File

@ -33,7 +33,7 @@
<button
mat-mini-fab
class="mat-elevation-z6 upload-profile-image-btn"
*ngIf="isMe"
*ngIf="isMe && editableProfileImage"
matTooltip="프로필 이미지 변경"
matTooltipPosition="above"
[disabled]="

View File

@ -26,6 +26,8 @@ export class ProfileComponent implements OnInit {
@Input()
profileImageRoot: string;
@Input()
editableProfileImage: boolean;
@Input()
isMe: boolean;
@Input()
isBuddy: boolean;