pr comments

This commit is contained in:
Peter Clement 2022-10-24 15:09:32 +01:00
parent 0f390889b4
commit cf0c4b2d7e
5 changed files with 2 additions and 14 deletions

View File

@ -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
}

View File

@ -101,7 +101,6 @@
warning={false}
>
<Input onlabel="Backup name" placeholder={row.name} bind:value={name} />
<ConfirmDialog />
</ConfirmDialog>
<style>

View File

@ -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

View File

@ -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,
}

View File

@ -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`,
})
},
})