small fixes for document info references

This commit is contained in:
Jacob Overgaard
2024-03-14 16:31:01 +01:00
parent 4db4632ca1
commit 6271acfc57

View File

@@ -47,7 +47,7 @@ export class UmbDocumentWorkspaceViewInfoReferenceElement extends UmbLitElement
async #getReferences() {
const { data } = await this.#trackedReferenceRepository.requestTrackedReference(
this.documentUnique,
this._currentPage - 1 * this.#itemsPerPage,
(this._currentPage - 1) * this.#itemsPerPage,
this.#itemsPerPage,
);
if (!data) return;
@@ -65,10 +65,9 @@ export class UmbDocumentWorkspaceViewInfoReferenceElement extends UmbLitElement
render() {
if (this._items && this._items.length > 0) {
return html`<strong>
<umb-localize key="references_labelUsedByItems">Referenced by the following items</umb-localize>
</strong>
<uui-box style="--uui-box-default-padding:0">
return html` <uui-box
headline=${this.localize.term('references_labelUsedByItems')}
style="--uui-box-default-padding:0">
<uui-table>
<uui-table-head>
<uui-table-head-cell></uui-table-head-cell>