diff --git a/client/web/admin/src/themes/corteza-base/variables.scss b/client/web/admin/src/themes/corteza-base/variables.scss index 2bd5378e9..12e7f9f79 100644 --- a/client/web/admin/src/themes/corteza-base/variables.scss +++ b/client/web/admin/src/themes/corteza-base/variables.scss @@ -88,10 +88,10 @@ $sidebar-width: 320px !default; $sidebar-bg: #F4F7FA; // Pagination -$pagination-color: $dark !default; +$pagination-color: $primary !default; $pagination-disabled-bg: transparent !default; $pagination-bg: transparent !default; -$pagination-active-bg: $dark !default; +$pagination-active-bg: $primary !default; $pagination-border-width: 0 !default; // Forms diff --git a/client/web/compose/src/components/PageBlocks/RecordListBase.vue b/client/web/compose/src/components/PageBlocks/RecordListBase.vue index 031d8b4ad..1f70cf2d6 100644 --- a/client/web/compose/src/components/PageBlocks/RecordListBase.vue +++ b/client/web/compose/src/components/PageBlocks/RecordListBase.vue @@ -191,6 +191,7 @@ + + - - - - - - - - + @@ -504,7 +505,7 @@
@@ -567,22 +567,28 @@ - + {{ $t('recordList.pagination.prev') }} {{ $t('recordList.pagination.next') }} - +
@@ -747,6 +753,10 @@ export default { return this.mode === 'editor' }, + showPageNavigation () { + return this.items.length && !this.options.hidePaging && !this.inlineEditing + }, + disableSelectAll () { if (this.options.hidePaging) { return !this.items.length @@ -853,6 +863,10 @@ export default { return undefined }, + + showCloneRecordButton () { + return !this.options.hideRecordCloneButton && this.recordListModule.canCreateRecord && (this.options.rowCreateUrl || this.recordPageID) + }, }, watch: { @@ -1031,8 +1045,12 @@ export default { }, handleDeleteInline (item, i) { - const r = new compose.Record(this.recordListModule, { ...item.r, deletedAt: new Date() }) - this.items.splice(i, 1, this.wrapRecord(r, item.id)) + if (item.r.recordID !== NoID) { + const r = new compose.Record(this.recordListModule, { ...item.r, deletedAt: new Date() }) + this.items.splice(i, 1, this.wrapRecord(r, item.id)) + } else { + this.items.splice(i, 1) + } }, handleRestoreInline (item, i) { diff --git a/client/web/compose/src/components/PageBlocks/RecordOrganizerBase.vue b/client/web/compose/src/components/PageBlocks/RecordOrganizerBase.vue index 85e9aaa31..69a2b5b49 100644 --- a/client/web/compose/src/components/PageBlocks/RecordOrganizerBase.vue +++ b/client/web/compose/src/components/PageBlocks/RecordOrganizerBase.vue @@ -7,7 +7,7 @@