pr comments
This commit is contained in:
parent
146cdaa131
commit
1aca8756f6
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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`,
|
|
||||||
})
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue