pr comments
This commit is contained in:
parent
146cdaa131
commit
1aca8756f6
5 changed files with 2 additions and 14 deletions
|
@ -21,7 +21,7 @@
|
|||
if (range) {
|
||||
// Flatpickr cant take two dates and work out what to display, needs to be provided a string.
|
||||
// Like - "Date1 to Date2". Hence passing in that specifically from the array
|
||||
value = e.detail[1]
|
||||
value = e?.detail[1]
|
||||
} else {
|
||||
value = e.detail
|
||||
}
|
||||
|
|
|
@ -101,7 +101,6 @@
|
|||
warning={false}
|
||||
>
|
||||
<Input onlabel="Backup name" placeholder={row.name} bind:value={name} />
|
||||
<ConfirmDialog />
|
||||
</ConfirmDialog>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { Badge } from "@budibase/bbui"
|
||||
|
||||
export let value = "started"
|
||||
$: status = value?.charAt(0).toUpperCase() + value?.slice(1)
|
||||
$: status = value[0].toUpperCase() + value?.slice(1)
|
||||
</script>
|
||||
|
||||
<Badge
|
||||
|
|
|
@ -34,10 +34,6 @@ export function createBackupsStore() {
|
|||
return API.createManualBackup(appId, name)
|
||||
}
|
||||
|
||||
async function downloadBackup({ appId, backupId }) {
|
||||
return API.downloadBackup({ appId, backupId })
|
||||
}
|
||||
|
||||
async function updateBackup({ appId, backupId, name }) {
|
||||
return API.updateBackup({ appId, backupId, name })
|
||||
}
|
||||
|
@ -48,7 +44,6 @@ export function createBackupsStore() {
|
|||
selectBackup,
|
||||
deleteBackup,
|
||||
restoreBackup,
|
||||
downloadBackup,
|
||||
updateBackup,
|
||||
subscribe: store.subscribe,
|
||||
}
|
||||
|
|
|
@ -47,10 +47,4 @@ export const buildBackupsEndpoints = API => ({
|
|||
body: { name },
|
||||
})
|
||||
},
|
||||
|
||||
downloadBackup: async ({ appId, backupId }) => {
|
||||
return await API.get({
|
||||
url: `/api/apps/${appId}/backups/${backupId}/file`,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue