pr comments
This commit is contained in:
parent
0f390889b4
commit
cf0c4b2d7e
|
@ -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 New Issue