Correcting contents rendering.
This commit is contained in:
parent
9dbe5c2313
commit
53788789d7
|
@ -6,7 +6,7 @@
|
|||
|
||||
<div class="cell">
|
||||
<Icon name="JourneyVoyager" />
|
||||
<div>{value?.length}</div>
|
||||
<div>{value}</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
ActionButton,
|
||||
DatePicker,
|
||||
Layout,
|
||||
Modal,
|
||||
notifications,
|
||||
Pagination,
|
||||
Select,
|
||||
Table,
|
||||
Modal,
|
||||
} from "@budibase/bbui"
|
||||
import { backups } from "stores/portal"
|
||||
import { createPaginationStore } from "helpers/pagination"
|
||||
|
@ -32,9 +32,9 @@
|
|||
$: fetchBackups(app.instance._id, trigger, page)
|
||||
|
||||
const triggers = {
|
||||
PUBLISH: "Publish",
|
||||
SCHEDULED: "Scheduled",
|
||||
MANUAL: "Manual",
|
||||
PUBLISH: "publish",
|
||||
SCHEDULED: "scheduled",
|
||||
MANUAL: "manual",
|
||||
}
|
||||
|
||||
const schema = {
|
||||
|
@ -79,15 +79,13 @@
|
|||
]
|
||||
|
||||
function flattenBackups(backups) {
|
||||
let flattened = backups.map(backup => {
|
||||
return backups.map(backup => {
|
||||
return {
|
||||
...backup,
|
||||
days: getDaysBetween(backup.createdAt),
|
||||
//...Object.assign(...backup?.contents),
|
||||
}
|
||||
})
|
||||
|
||||
return flattened
|
||||
}
|
||||
|
||||
function getDaysBetween(date) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<div class="cell">
|
||||
<Icon name="Data" />
|
||||
<div>{value?.length}</div>
|
||||
<div>{value}</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<div class="cell">
|
||||
<Icon name="WebPage" />
|
||||
<div>{value?.length}</div>
|
||||
<div>{value}</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Reference in New Issue