Skip to content

Commit

Permalink
Fix Bug 72105 - Automatic backup displays the same options for backup…
Browse files Browse the repository at this point in the history
… in settings and spaces.
  • Loading branch information
TatianaLopaeva committed Dec 20, 2024
1 parent 80423e5 commit b084f2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class AutomaticBackup extends React.PureComponent {
] = await Promise.all([
//getThirdPartyCommonFolderTree(),
getSettingsThirdParty(),
getBackupSchedule(),
getBackupSchedule(isManagement()),
getBackupStorage(),
getStorageRegions(),
]);
Expand Down Expand Up @@ -380,7 +380,7 @@ class AutomaticBackup extends React.PureComponent {
isManagement(),
);
const [selectedSchedule, storageInfo] = await Promise.all([
getBackupSchedule(),
getBackupSchedule(isManagement()),
getBackupStorage(),
]);
setBackupSchedule(selectedSchedule);
Expand Down
5 changes: 4 additions & 1 deletion packages/shared/api/portal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ export function deleteBackupSchedule() {
return request(options);
}

export function getBackupSchedule() {
export function getBackupSchedule(dump: boolean = false) {
const options = {
method: "get",
url: "/portal/getbackupschedule",
params: {
dump,
},
};
return request(options);
}
Expand Down

0 comments on commit b084f2a

Please sign in to comment.