Web:Client:ChangePortalOwnerDialog: fix translation keys and theme

This commit is contained in:
TimofeyBoyko 2022-09-08 14:45:52 +03:00
parent 0aba1e4a95
commit 41873e3c69
3 changed files with 7 additions and 26 deletions

View File

@ -1,17 +1,6 @@
{
"ChangeDescription": "Changes will be applied after the confirmation via email",
"ChangeUser": "Change user",
"OwnerRights": [
"— Do the same as administrators;",
"— Appoint administrators;",
"— Set access rights;",
"— Manage portal configuration;",
"— Manage user accounts;",
"— Change portal owner;",
"— Backup portal data;",
"— Deactivate or delete portal;"
],
"NewPortalOwner": "New portal owner",
"ChangeInstruction": "To change the Portal owner please choose the Name of the new Portal owner below.",
"ChangeUser": "Change user",
"NewPortalOwner": "New portal owner",
"PortalOwnerCan": "Portal owner can:"
}

View File

@ -46,7 +46,7 @@ const StyledPeopleSelectorInfo = styled.div`
font-size: 13px;
line-height: 20px;
color: ${(props) => props.theme.settings.owner.departmentColor};
color: ${(props) => props.theme.text.disableColor};
}
`;
@ -63,7 +63,7 @@ const StyledPeopleSelector = styled.div`
font-size: 13px;
line-height: 20px;
color: ${(props) => props.theme.settings.owner.departmentColor};
color: ${(props) => props.theme.text.disableColor};
margin-left: 8px;
}

View File

@ -79,15 +79,7 @@ const ChangePortalOwnerDialog = ({
setSelectedUser(null);
};
const translationOwnerRights = t("OwnerRights", { returnObjects: true });
const ownerRights = React.useMemo(() => {
if (Array.isArray(translationOwnerRights)) {
return translationOwnerRights;
}
return [];
}, [Array.isArray(translationOwnerRights)]);
const ownerRights = t("Settings:AccessRightsOwnerOpportunities").split("|");
return (
<ModalDialog
@ -177,7 +169,7 @@ const ChangePortalOwnerDialog = ({
{ownerRights?.map((item) => (
<Text key={item} className="list-item" noSelect title={item}>
{item}
{item};
</Text>
))}
</StyledAvailableList>
@ -185,7 +177,7 @@ const ChangePortalOwnerDialog = ({
<ModalDialog.Footer>
<StyledFooterWrapper>
<Text className="info" noSelect>
{t("ChangeDescription")}
{t("Settings:AccessRightsChangeOwnerConfirmText")}
</Text>
<div className="button-wrapper">
<Button