Merge remote-tracking branch 'origin/release/17.0'
This commit is contained in:
@@ -591,7 +591,7 @@ export default {
|
||||
chooseMediaStartNode: 'Vælg startnode for medie',
|
||||
selectMediaType: 'Vælg medietype',
|
||||
selectIcon: 'Vælg ikon',
|
||||
selectItem: 'Vælg item',
|
||||
selectItem: 'Vælg element',
|
||||
selectLink: 'Vælg link',
|
||||
addLink: 'Tilføj Link',
|
||||
updateLink: 'Opdater Link',
|
||||
@@ -2366,10 +2366,10 @@ export default {
|
||||
labelUsedByDocuments: 'Brugt i Dokumenter',
|
||||
labelUsedByMembers: 'Brugt i Medlemmer',
|
||||
labelUsedByMedia: 'Brugt i Medier',
|
||||
itemHasNoReferences: 'This item has no references.',
|
||||
labelUsedByDocumentTypes: 'Referenced by the following Document Types',
|
||||
labelUsedByItems: 'Referenced by the following items',
|
||||
labelDependsOnThis: 'The following items depend on this',
|
||||
itemHasNoReferences: 'Ingen referencer',
|
||||
labelUsedByDocumentTypes: 'Refereret af følgende Dokument Typer',
|
||||
labelUsedByItems: 'Refereret af',
|
||||
labelDependsOnThis: 'Følgende elementer er afhængige af dette',
|
||||
labelUsedItems: 'The following items are referenced',
|
||||
labelUsedDescendants: 'The following descendant items have dependencies',
|
||||
labelDependentDescendants: 'The following descending items have dependencies',
|
||||
|
||||
@@ -2447,7 +2447,7 @@ export default {
|
||||
'This item or its descendants is being used. Unpublishing can lead to broken links on your website. Please take the appropriate actions.',
|
||||
deleteDisabledWarning: 'This item or its descendants is being used. Therefore, deletion has been disabled.',
|
||||
listViewDialogWarning: 'The following items you are trying to %0% are used by other content.',
|
||||
labelUsedByItems: 'Referenced by the following items',
|
||||
labelUsedByItems: 'Referenced by',
|
||||
labelDependsOnThis: 'The following items depend on this',
|
||||
labelDependentDescendants: 'The following descending items have dependencies',
|
||||
labelMoreReferences: (count: number) => {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { UMB_DATA_TYPE_WORKSPACE_ALIAS } from '../../workspace/constants.js';
|
||||
import { UMB_DATA_TYPE_REFERENCE_REPOSITORY_ALIAS } from '../constants.js';
|
||||
import { UMB_WORKSPACE_CONDITION_ALIAS } from '@umbraco-cms/backoffice/workspace';
|
||||
import {
|
||||
UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
} from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
@@ -8,14 +11,18 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
kind: 'entityReferences',
|
||||
name: 'Data Type References Workspace Info App',
|
||||
alias: 'Umb.WorkspaceInfoApp.DataType.References',
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_DATA_TYPE_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
match: UMB_DATA_TYPE_WORKSPACE_ALIAS,
|
||||
},
|
||||
{
|
||||
alias: UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
match: false,
|
||||
},
|
||||
],
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_DATA_TYPE_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { UMB_DOCUMENT_WORKSPACE_ALIAS } from '../../workspace/constants.js';
|
||||
import { UMB_DOCUMENT_REFERENCE_REPOSITORY_ALIAS } from '../constants.js';
|
||||
import { UMB_WORKSPACE_CONDITION_ALIAS } from '@umbraco-cms/backoffice/workspace';
|
||||
import {
|
||||
UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
} from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
@@ -8,14 +11,18 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
kind: 'entityReferences',
|
||||
name: 'Document References Workspace Info App',
|
||||
alias: 'Umb.WorkspaceInfoApp.Document.References',
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_DOCUMENT_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
match: UMB_DOCUMENT_WORKSPACE_ALIAS,
|
||||
},
|
||||
{
|
||||
alias: UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
match: false,
|
||||
},
|
||||
],
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_DOCUMENT_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { UMB_MEDIA_WORKSPACE_ALIAS } from '../../workspace/constants.js';
|
||||
import { UMB_MEDIA_REFERENCE_REPOSITORY_ALIAS } from '../constants.js';
|
||||
import { UMB_WORKSPACE_CONDITION_ALIAS } from '@umbraco-cms/backoffice/workspace';
|
||||
import {
|
||||
UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
} from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
@@ -8,14 +11,18 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
kind: 'entityReferences',
|
||||
name: 'Media References Workspace Info App',
|
||||
alias: 'Umb.WorkspaceInfoApp.Media.References',
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_MEDIA_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
match: UMB_MEDIA_WORKSPACE_ALIAS,
|
||||
},
|
||||
{
|
||||
alias: UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
match: false,
|
||||
},
|
||||
],
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_MEDIA_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { UMB_MEMBER_WORKSPACE_ALIAS } from '../../workspace/constants.js';
|
||||
import { UMB_MEMBER_REFERENCE_REPOSITORY_ALIAS } from '../constants.js';
|
||||
import { UMB_WORKSPACE_CONDITION_ALIAS } from '@umbraco-cms/backoffice/workspace';
|
||||
import {
|
||||
UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
} from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
@@ -8,14 +11,18 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
kind: 'entityReferences',
|
||||
name: 'Member References Workspace Info App',
|
||||
alias: 'Umb.WorkspaceInfoApp.Member.References',
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_MEMBER_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_WORKSPACE_CONDITION_ALIAS,
|
||||
match: UMB_MEMBER_WORKSPACE_ALIAS,
|
||||
},
|
||||
{
|
||||
alias: UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS,
|
||||
match: false,
|
||||
},
|
||||
],
|
||||
meta: {
|
||||
referenceRepositoryAlias: UMB_MEMBER_REFERENCE_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -103,7 +103,6 @@ export class UmbEntityReferencesWorkspaceInfoAppElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
override render() {
|
||||
if (!this._items?.length) return nothing;
|
||||
return html`
|
||||
<umb-workspace-info-app-layout headline="#references_labelUsedByItems">
|
||||
<div id="content">${this.#renderItems()} ${this.#renderReferencePagination()}</div>
|
||||
@@ -112,7 +111,10 @@ export class UmbEntityReferencesWorkspaceInfoAppElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
#renderItems() {
|
||||
if (!this._items) return;
|
||||
if (!this._items) return nothing;
|
||||
if (this._items.length === 0) {
|
||||
return html`<umb-localize class="noItems" key="references_itemHasNoReferences"></umb-localize>`;
|
||||
}
|
||||
return html`
|
||||
<uui-ref-list>
|
||||
${repeat(
|
||||
@@ -150,6 +152,11 @@ export class UmbEntityReferencesWorkspaceInfoAppElement extends UmbLitElement {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.noItems {
|
||||
display: block;
|
||||
margin: var(--uui-size-space-2);
|
||||
}
|
||||
|
||||
#content {
|
||||
display: block;
|
||||
padding: var(--uui-size-space-3) var(--uui-size-space-4);
|
||||
|
||||
Reference in New Issue
Block a user