프로필 이미지 업로드 옵션처리.
This commit is contained in:
parent
0233ef4117
commit
76a66088bd
|
@ -1,6 +1,7 @@
|
||||||
<ucap-profile-profile
|
<ucap-profile-profile
|
||||||
[userInfo]="userInfo"
|
[userInfo]="userInfo"
|
||||||
[profileImageRoot]="sessionVerinfo.profileRoot"
|
[profileImageRoot]="sessionVerinfo.profileRoot"
|
||||||
|
[editableProfileImage]="editableProfileImage"
|
||||||
[isMe]="isMe"
|
[isMe]="isMe"
|
||||||
[myMadn]="loginRes.madn"
|
[myMadn]="loginRes.madn"
|
||||||
[isBuddy]="isBuddy"
|
[isBuddy]="isBuddy"
|
||||||
|
|
|
@ -50,6 +50,7 @@ import {
|
||||||
import { NGXLogger } from 'ngx-logger';
|
import { NGXLogger } from 'ngx-logger';
|
||||||
import { SmsUtils } from '@ucap-webmessenger/daesang';
|
import { SmsUtils } from '@ucap-webmessenger/daesang';
|
||||||
import { NativeService, UCAP_NATIVE_SERVICE } from '@ucap-webmessenger/native';
|
import { NativeService, UCAP_NATIVE_SERVICE } from '@ucap-webmessenger/native';
|
||||||
|
import { environment } from '../../../../../environments/environment';
|
||||||
|
|
||||||
export interface ProfileDialogData {
|
export interface ProfileDialogData {
|
||||||
userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN;
|
userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN;
|
||||||
|
@ -71,6 +72,7 @@ export class ProfileDialogComponent implements OnInit, OnDestroy {
|
||||||
isMe: boolean;
|
isMe: boolean;
|
||||||
isBuddy: boolean;
|
isBuddy: boolean;
|
||||||
isFavorit: boolean;
|
isFavorit: boolean;
|
||||||
|
editableProfileImage: boolean;
|
||||||
|
|
||||||
selectAllBuddy2Subscription: Subscription;
|
selectAllBuddy2Subscription: Subscription;
|
||||||
|
|
||||||
|
@ -97,6 +99,9 @@ export class ProfileDialogComponent implements OnInit, OnDestroy {
|
||||||
);
|
);
|
||||||
|
|
||||||
this.userInfo = data.userInfo;
|
this.userInfo = data.userInfo;
|
||||||
|
|
||||||
|
this.editableProfileImage =
|
||||||
|
environment.productConfig.CommonSetting.editableProfileImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
||||||
notification: {
|
notification: {
|
||||||
chatMessage: true
|
chatMessage: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
CommonSetting: {
|
||||||
|
editableProfileImage: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
||||||
notification: {
|
notification: {
|
||||||
chatMessage: true
|
chatMessage: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
CommonSetting: {
|
||||||
|
editableProfileImage: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
||||||
notification: {
|
notification: {
|
||||||
chatMessage: true
|
chatMessage: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
CommonSetting: {
|
||||||
|
editableProfileImage: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,9 @@ export const environment: Environment = {
|
||||||
notification: {
|
notification: {
|
||||||
chatMessage: true
|
chatMessage: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
CommonSetting: {
|
||||||
|
editableProfileImage: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,10 @@ export interface Environment {
|
||||||
intervalHour: number;
|
intervalHour: number;
|
||||||
};
|
};
|
||||||
defaultSettings: Settings;
|
defaultSettings: Settings;
|
||||||
|
|
||||||
|
CommonSetting: {
|
||||||
|
editableProfileImage: boolean;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
customConfig?: any;
|
customConfig?: any;
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<button
|
<button
|
||||||
mat-mini-fab
|
mat-mini-fab
|
||||||
class="mat-elevation-z6 upload-profile-image-btn"
|
class="mat-elevation-z6 upload-profile-image-btn"
|
||||||
*ngIf="isMe"
|
*ngIf="isMe && editableProfileImage"
|
||||||
matTooltip="프로필 이미지 변경"
|
matTooltip="프로필 이미지 변경"
|
||||||
matTooltipPosition="above"
|
matTooltipPosition="above"
|
||||||
[disabled]="
|
[disabled]="
|
||||||
|
|
|
@ -26,6 +26,8 @@ export class ProfileComponent implements OnInit {
|
||||||
@Input()
|
@Input()
|
||||||
profileImageRoot: string;
|
profileImageRoot: string;
|
||||||
@Input()
|
@Input()
|
||||||
|
editableProfileImage: boolean;
|
||||||
|
@Input()
|
||||||
isMe: boolean;
|
isMe: boolean;
|
||||||
@Input()
|
@Input()
|
||||||
isBuddy: boolean;
|
isBuddy: boolean;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user