Merge remote-tracking branch 'origin/main' into feature/info-tab-supports-variants

This commit is contained in:
Jacob Overgaard
2024-03-05 14:08:20 +01:00

View File

@@ -241,23 +241,24 @@ export class UmbDocumentWorkspaceViewInfoElement extends UmbLitElement {
<div class="general-item">
<strong><umb-localize key="content_documentType">Document Type</umb-localize></strong>
<uui-ref-node-document-type
standalone
href=${this._editDocumentTypePath + 'edit/' + this._documentTypeUnique}
name=${ifDefined(this._documentTypeName)}>
<uui-icon slot="icon" name=${ifDefined(this._documentTypeIcon)}></uui-icon>
<umb-icon slot="icon" name=${ifDefined(this._documentTypeIcon)}></umb-icon>
</uui-ref-node-document-type>
</div>
<div class="general-item">
<strong><umb-localize key="template_template">Template</umb-localize></strong>
${this._templateUnique
? html`<uui-ref-node
standalone
name=${ifDefined(this._templateName)}
href=${this._editTemplatePath + 'edit/' + this._templateUnique}>
<uui-icon slot="icon" name="icon-newspaper"></uui-icon>
<uui-button
slot="actions"
label=${this.localize.term('general_edit')}
@click=${this.#openTemplatePicker}></uui-button>
</uui-ref-node>`
<uui-action-bar slot="actions">
<uui-button label=${this.localize.term('general_edit')} @click=${this.#openTemplatePicker}></uui-button>
</uui-action-bar>
</uui-ref-node>`
: html`<uui-button
label=${this.localize.term('general_edit')}
@click=${this.#openTemplatePicker}></uui-button>`}