Skip to content

Commit

Permalink
do not allow duplicate backups to be set.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jul 9, 2024
1 parent 9f1de9c commit f836fd8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/views/tenant/backup/CreateBackup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ const CreateBackup = () => {
ScheduledTime: unixTime,
Recurrence: { value: '1d' },
}
genericPostRequest({ path: '/api/AddScheduledItem?hidden=true', values: shippedValues }).then(
(res) => {
setRefreshState(res.requestId)
},
)
genericPostRequest({
path: '/api/AddScheduledItem?hidden=true&DisallowDuplicateName=true',
values: shippedValues,
}).then((res) => {
setRefreshState(res.requestId)
})
}
const Offcanvas = (row, rowIndex, formatExtraData) => {
const handleDeleteSchedule = (apiurl, message) => {
Expand Down

0 comments on commit f836fd8

Please sign in to comment.