From 6b89f94fbb8eba76ecae2be85b118b8a4f7481b6 Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Sun, 6 Feb 2022 20:15:27 +0300 Subject: [PATCH] Web: files: ManualBackup: Refactoring. --- .../data-management/ManualBackup.js | 53 ++++++++----------- 1 file changed, 21 insertions(+), 32 deletions(-) diff --git a/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/ManualBackup.js b/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/ManualBackup.js index a56b28dc233..831c3a546e1 100644 --- a/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/ManualBackup.js +++ b/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/ManualBackup.js @@ -311,22 +311,31 @@ class ManualBackup extends React.Component { const isDisabledThirdParty = this.commonThirdPartyList && this.commonThirdPartyList.length === 0; + const commonRadioButtonProps = { + fontSize: "13px", + fontWeight: "400", + value: "value", + className: "backup_radio-button", + onClick: this.onClickShowStorage, + }; + + const commonModulesProps = { + isMaxProgress, + isCopyingLocal: isLoadingData, + onMakeCopy: this.onMakeCopy, + }; + return isInitialLoading ? ( ) : ( {t("TemporaryStorageDescription")} @@ -366,16 +375,12 @@ class ManualBackup extends React.Component { @@ -384,62 +389,46 @@ class ManualBackup extends React.Component { {isCheckedDocuments && ( )} {t("ThirdPartyResourceDescription")} {isCheckedThirdParty && ( )} {t("ThirdPartyStorageDescription")} {isCheckedThirdPartyStorage && ( - + )}