From 4ef69705839291d72589556f936ac8d3ed002858 Mon Sep 17 00:00:00 2001 From: mushka Date: Thu, 7 Jul 2022 17:54:28 +0300 Subject: [PATCH] fixed translations and styles on ThirdPartyMove dialog --- .../locales/en/ThirdPartyMoveDialog.json | 4 +++- .../dialogs/ThirdPartyMoveDialog/index.js | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/products/ASC.Files/Client/public/locales/en/ThirdPartyMoveDialog.json b/products/ASC.Files/Client/public/locales/en/ThirdPartyMoveDialog.json index 2a5e3deab4..c085a214a8 100644 --- a/products/ASC.Files/Client/public/locales/en/ThirdPartyMoveDialog.json +++ b/products/ASC.Files/Client/public/locales/en/ThirdPartyMoveDialog.json @@ -1,4 +1,6 @@ { "MoveConfirmation": "Move confirmation", - "MoveConfirmationMessage": "You are about to move elements from the {{provider}} directory. They will be deleted from your {{provider}} account and will no longer be accessible to other users." + "MoveConfirmationAlert": "You are about to move elements from the {{provider}} directory. In such a case, they will be deleted from your {{provider}} account and will no longer be accessible to other users, in case these elements have previously been shared.", + "MoveFileOption": "Move file", + "CreateFileCopyOption": "Create file copy" } diff --git a/products/ASC.Files/Client/src/components/dialogs/ThirdPartyMoveDialog/index.js b/products/ASC.Files/Client/src/components/dialogs/ThirdPartyMoveDialog/index.js index fffe64a781..9ddb226985 100644 --- a/products/ASC.Files/Client/src/components/dialogs/ThirdPartyMoveDialog/index.js +++ b/products/ASC.Files/Client/src/components/dialogs/ThirdPartyMoveDialog/index.js @@ -34,12 +34,16 @@ const StyledOperationDialog = styled(ModalDialog)` svg { overflow: visible; margin-right: 8px; - margin-top: 3px; } - .radio-option-title { - font-weight: 600; - font-size: 14px; + span { + display: flex; + align-items: center; + .radio-option-title { + font-weight: 600; + font-size: 14px; + line-height: 16px; + } } } } @@ -114,14 +118,12 @@ const PureThirdPartyMoveContainer = ({ const radioOptions = [ { - label: ( - {t("Translations:Move")} - ), + label: {t("MoveFileOption")}, value: "move", }, { label: ( - {t("Translations:Copy")} + {t("CreateFileCopyOption")} ), value: "copy", }, @@ -148,10 +150,6 @@ const PureThirdPartyMoveContainer = ({ fileIds, deleteAfter, isCopy, - translations: { - copy: t("Common:CopyOperation"), - move: t("Translations:MoveToOperation"), - }, }; setIsLoading(true); @@ -183,7 +181,7 @@ const PureThirdPartyMoveContainer = ({ > {t("MoveConfirmation")} - {t("MoveConfirmationMessage", { provider: providerTitle })} + {t("MoveConfirmationAlert", { provider: providerTitle })}