Client: Added an exception for the accounts section.

This commit is contained in:
Tatiana Lopaeva 2024-08-12 16:12:07 +03:00
parent 582912b359
commit d105d31c36
2 changed files with 13 additions and 6 deletions

View File

@ -564,8 +564,10 @@ const InviteInput = ({
containerRef={inputsRef}
isOwner={isOwner}
isMobileView={isMobileView}
isSelectionDisabled={isPaidUserLimit}
selectionErrorText={<PaidQuotaLimitError />}
{...(roomId === -1 && {
isSelectionDisabled: isPaidUserLimit,
selectionErrorText: <PaidQuotaLimitError />,
})}
/>
{!hideSelector && addUsersPanelVisible && (

View File

@ -69,6 +69,7 @@ const Item = ({
isPaidUserAccess,
setInvitePaidUsersCount,
isPaidUserLimit,
roomId,
}) => {
const {
avatar,
@ -260,9 +261,11 @@ const Item = ({
setIsOpenItemAccess={setIsOpenItemAccess}
isMobileView={isMobileView}
noBorder
isSelectionDisabled={isPaidUserLimit}
selectionErrorText={<PaidQuotaLimitError />}
availableAccess={EmployeeType.Guest}
{...(roomId === -1 && {
isSelectionDisabled: isPaidUserLimit,
selectionErrorText: <PaidQuotaLimitError />,
availableAccess: [EmployeeType.Guest],
})}
/>
</>
)}
@ -295,12 +298,14 @@ const Item = ({
};
export default inject(({ dialogsStore, currentQuotaStore }) => {
const { isPaidUserAccess, setInvitePaidUsersCount } = dialogsStore;
const { isPaidUserAccess, setInvitePaidUsersCount, invitePanelOptions } =
dialogsStore;
const { isPaidUserLimit } = currentQuotaStore;
return {
isPaidUserAccess,
setInvitePaidUsersCount,
isPaidUserLimit,
roomId: invitePanelOptions.roomId,
};
})(observer(Item));