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