Web:Add dataReassignmentUrl.

This commit is contained in:
gazizova-vlada 2023-09-18 18:17:02 +03:00
parent 34a7c068a7
commit f8d623d3ef
4 changed files with 13 additions and 4 deletions

View File

@ -46,6 +46,7 @@ const DataReassignmentDialog = ({
setFilter,
setIsDeletingUserWithReassignment,
setDataReassignmentDeleteProfile,
dataReassignmentUrl,
}) => {
const [selectorVisible, setSelectorVisible] = useState(false);
const defaultSelectedUser = isDeletingUserWithReassignment
@ -218,6 +219,7 @@ const DataReassignmentDialog = ({
selectedUser={selectedUser}
percent={percent}
isAbortTransfer={isAbortTransfer}
dataReassignmentUrl={dataReassignmentUrl}
currentColorScheme={currentColorScheme}
onTogglePeopleSelector={onTogglePeopleSelector}
/>
@ -250,7 +252,7 @@ export default inject(({ auth, peopleStore, setup }) => {
isDeletingUserWithReassignment,
setIsDeletingUserWithReassignment,
} = peopleStore.dialogStore;
const { currentColorScheme } = auth.settingsStore;
const { currentColorScheme, dataReassignmentUrl } = auth.settingsStore;
const {
dataReassignment,
dataReassignmentProgress,
@ -274,6 +276,7 @@ export default inject(({ auth, peopleStore, setup }) => {
setFilter,
isDeletingUserWithReassignment,
setIsDeletingUserWithReassignment,
dataReassignmentUrl,
};
})(
observer(

View File

@ -2,7 +2,7 @@ import { StyledAvailableList } from "../../../ChangePortalOwnerDialog/StyledDial
import Link from "@docspace/components/link";
import Text from "@docspace/components/text";
const Description = ({ t }) => {
const Description = ({ t, dataReassignmentUrl }) => {
return (
<>
<StyledAvailableList className="list-container">
@ -14,10 +14,11 @@ const Description = ({ t }) => {
</Text>
<Link
type={"action"}
target="_blank"
isHovered
fontWeight={600}
style={{ textDecoration: "underline" }}
href={dataReassignmentUrl}
>
{t("DataReassignmentDialog:MoreAboutDataTransfer")}
</Link>

View File

@ -14,6 +14,7 @@ const Body = ({
percent,
currentColorScheme,
isAbortTransfer,
dataReassignmentUrl,
onTogglePeopleSelector,
onTerminate,
}) => {
@ -44,7 +45,7 @@ const Body = ({
currentColorScheme={currentColorScheme}
onTogglePeopleSelector={onTogglePeopleSelector}
/>
<Description t={t} />
<Description t={t} dataReassignmentUrl={dataReassignmentUrl} />
</>
);
};

View File

@ -323,6 +323,10 @@ class SettingsStore {
return `${this.apiDocsLink}/docspace/basic`;
}
get dataReassignmentUrl() {
return `${this.helpLink}/userguides/groups-gettingstarted-people.aspx#DeletingProfile_block`;
}
get wizardCompleted() {
return this.isLoaded && !this.wizardToken;
}