유저선택팝업 > 새로운 대화 개설시 300명 제한 로직 추가.
This commit is contained in:
parent
517d8a4d37
commit
069b3e6e67
|
@ -262,8 +262,48 @@
|
||||||
</mat-chip>
|
</mat-chip>
|
||||||
</mat-chip-list>
|
</mat-chip-list>
|
||||||
</div>
|
</div>
|
||||||
<span>
|
<ng-container
|
||||||
{{ selectedUserList.length }}
|
*ngIf="
|
||||||
{{ 'common.units.persons' | translate }}
|
data.type === UserSelectDialogType.NewChat;
|
||||||
</span>
|
then newchatcount;
|
||||||
|
else defaultcount
|
||||||
|
"
|
||||||
|
></ng-container>
|
||||||
|
<ng-template #newchatcount>
|
||||||
|
<span
|
||||||
|
[ngClass]="
|
||||||
|
selectedUserList.length >=
|
||||||
|
environment.productConfig.CommonSetting.maxChatRoomUser
|
||||||
|
? 'text-warn-color'
|
||||||
|
: ''
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ selectedUserList.length }} /
|
||||||
|
{{ environment.productConfig.CommonSetting.maxChatRoomUser - 1 }}
|
||||||
|
{{ 'common.units.persons' | translate }}
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
class="text-warn-color"
|
||||||
|
style="float: right;"
|
||||||
|
*ngIf="
|
||||||
|
selectedUserList.length >=
|
||||||
|
environment.productConfig.CommonSetting.maxChatRoomUser
|
||||||
|
"
|
||||||
|
>
|
||||||
|
({{
|
||||||
|
'chat.errors.maxCountOfRoomMemberWith'
|
||||||
|
| translate
|
||||||
|
: {
|
||||||
|
maxCount:
|
||||||
|
environment.productConfig.CommonSetting.maxChatRoomUser - 1
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
</span>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template #defaultcount>
|
||||||
|
<span>
|
||||||
|
{{ selectedUserList.length }}
|
||||||
|
{{ 'common.units.persons' | translate }}
|
||||||
|
</span>
|
||||||
|
</ng-template>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
|
@ -134,6 +134,7 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
|
||||||
currentTabIndex: number;
|
currentTabIndex: number;
|
||||||
|
|
||||||
UserSelectDialogType = UserSelectDialogType;
|
UserSelectDialogType = UserSelectDialogType;
|
||||||
|
environment = environment;
|
||||||
|
|
||||||
loginRes: LoginResponse;
|
loginRes: LoginResponse;
|
||||||
loginResSubscription: Subscription;
|
loginResSubscription: Subscription;
|
||||||
|
@ -740,8 +741,12 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
|
||||||
if (this.selectedUserList.length === 0 && !this.selectedRoom) {
|
if (this.selectedUserList.length === 0 && !this.selectedRoom) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
} else if (this.data.type === UserSelectDialogType.NewChat) {
|
||||||
|
return (
|
||||||
|
this.selectedUserList.length >=
|
||||||
|
this.environment.productConfig.CommonSetting.maxChatRoomUser
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user