1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

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) { if (range) {
// Flatpickr cant take two dates and work out what to display, needs to be provided a string. // 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 // Like - "Date1 to Date2". Hence passing in that specifically from the array
value = e.detail[1] value = e?.detail[1]
} else { } else {
value = e.detail value = e.detail
} }

View file

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

View file

@ -2,7 +2,7 @@
import { Badge } from "@budibase/bbui" import { Badge } from "@budibase/bbui"
export let value = "started" export let value = "started"
$: status = value?.charAt(0).toUpperCase() + value?.slice(1) $: status = value[0].toUpperCase() + value?.slice(1)
</script> </script>
<Badge <Badge

View file

@ -34,10 +34,6 @@ export function createBackupsStore() {
return API.createManualBackup(appId, name) return API.createManualBackup(appId, name)
} }
async function downloadBackup({ appId, backupId }) {
return API.downloadBackup({ appId, backupId })
}
async function updateBackup({ appId, backupId, name }) { async function updateBackup({ appId, backupId, name }) {
return API.updateBackup({ appId, backupId, name }) return API.updateBackup({ appId, backupId, name })
} }
@ -48,7 +44,6 @@ export function createBackupsStore() {
selectBackup, selectBackup,
deleteBackup, deleteBackup,
restoreBackup, restoreBackup,
downloadBackup,
updateBackup, updateBackup,
subscribe: store.subscribe, subscribe: store.subscribe,
} }

View file

@ -47,10 +47,4 @@ export const buildBackupsEndpoints = API => ({
body: { name }, body: { name },
}) })
}, },
downloadBackup: async ({ appId, backupId }) => {
return await API.get({
url: `/api/apps/${appId}/backups/${backupId}/file`,
})
},
}) })