프로필 이미지 업로드 옵션처리.
This commit is contained in:
parent
0233ef4117
commit
76a66088bd
|
@ -1,6 +1,7 @@
|
|||
<ucap-profile-profile
|
||||
[userInfo]="userInfo"
|
||||
[profileImageRoot]="sessionVerinfo.profileRoot"
|
||||
[editableProfileImage]="editableProfileImage"
|
||||
[isMe]="isMe"
|
||||
[myMadn]="loginRes.madn"
|
||||
[isBuddy]="isBuddy"
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
|||
notification: {
|
||||
chatMessage: true
|
||||
}
|
||||
},
|
||||
CommonSetting: {
|
||||
editableProfileImage: false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
|||
notification: {
|
||||
chatMessage: true
|
||||
}
|
||||
},
|
||||
CommonSetting: {
|
||||
editableProfileImage: false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
|||
notification: {
|
||||
chatMessage: true
|
||||
}
|
||||
},
|
||||
CommonSetting: {
|
||||
editableProfileImage: true
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
|||
notification: {
|
||||
chatMessage: true
|
||||
}
|
||||
},
|
||||
CommonSetting: {
|
||||
editableProfileImage: true
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -62,6 +62,10 @@ export interface Environment {
|
|||
intervalHour: number;
|
||||
};
|
||||
defaultSettings: Settings;
|
||||
|
||||
CommonSetting: {
|
||||
editableProfileImage: boolean;
|
||||
};
|
||||
};
|
||||
|
||||
customConfig?: any;
|
||||
|
|
|
@ -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]="
|
||||
|
|
|
@ -26,6 +26,8 @@ export class ProfileComponent implements OnInit {
|
|||
@Input()
|
||||
profileImageRoot: string;
|
||||
@Input()
|
||||
editableProfileImage: boolean;
|
||||
@Input()
|
||||
isMe: boolean;
|
||||
@Input()
|
||||
isBuddy: boolean;
|
||||
|
|
Loading…
Reference in New Issue
Block a user