Client: Added an exception for the accounts section.
This commit is contained in:
parent
582912b359
commit
d105d31c36
@ -564,8 +564,10 @@ const InviteInput = ({
|
||||
containerRef={inputsRef}
|
||||
isOwner={isOwner}
|
||||
isMobileView={isMobileView}
|
||||
isSelectionDisabled={isPaidUserLimit}
|
||||
selectionErrorText={<PaidQuotaLimitError />}
|
||||
{...(roomId === -1 && {
|
||||
isSelectionDisabled: isPaidUserLimit,
|
||||
selectionErrorText: <PaidQuotaLimitError />,
|
||||
})}
|
||||
/>
|
||||
|
||||
{!hideSelector && addUsersPanelVisible && (
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user