Web:Client: fix restore backup

This commit is contained in:
Timofey Boyko 2023-06-29 17:19:22 +03:00
parent 16c2d0ac92
commit 708888244f

View File

@ -150,7 +150,7 @@ const RestoreBackup = (props) => {
onClick={onChangeRadioButton}
selected={radioButtonState}
spacing="16px"
// isDisabled={!isEnableRestore}
isDisabled={!isEnableRestore}
/>
</>
);
@ -161,15 +161,17 @@ const RestoreBackup = (props) => {
{radioButtonState === BACKUP_ROOM && (
<RoomsModule
// isDisabled={!isEnableRestore}
isDisabled={!isEnableRestore}
t={t}
fileName={path}
isPanelVisible={isVisibleSelectFileDialog}
onClose={onModalClose}
onClickInput={onClickInput}
onSelectFile={(file) => {
if (file && file.path) {
const newPath = file.path.join("/");
setPath(`${newPath}/${file.title}`);
}
setRestoreResource(file.id);
}}
/>