From 196af99dcd958d69eafb4088dad42c1f545440bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:28:15 +0100 Subject: [PATCH 01/15] improve workspace-action model --- .../document/workspace-document.element.ts | 37 ++++++++++++++++++- .../workspace-action-node-save.element.ts | 9 +++-- .../workspace-content.element.ts | 3 +- .../workspace-entity.element.ts | 5 +++ .../workspace-action.models.ts | 4 ++ 5 files changed, 52 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document/workspace-document.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document/workspace-document.element.ts index c49419a2b8..062829982e 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document/workspace-document.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document/workspace-document.element.ts @@ -3,7 +3,7 @@ import { css, html, LitElement } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { UmbWorkspaceDocumentContext } from './workspace-document.context'; import { umbExtensionsRegistry } from '@umbraco-cms/extensions-registry'; -import type { ManifestWorkspaceView } from '@umbraco-cms/models'; +import type { ManifestWorkspaceAction, ManifestWorkspaceView } from '@umbraco-cms/models'; import { UmbContextConsumerMixin, UmbContextProviderMixin } from '@umbraco-cms/context-api'; import '../shared/workspace-content/workspace-content.element'; import { UmbObserverMixin } from '@umbraco-cms/observable-api'; @@ -61,7 +61,7 @@ export class UmbWorkspaceDocumentElement extends UmbObserverMixin(UmbContextCons } private _registerWorkspaceViews() { - const dashboards: Array = [ + const dashboards: Array = [ { type: 'workspaceView', alias: 'Umb.WorkspaceView.Document.Edit', @@ -88,6 +88,39 @@ export class UmbWorkspaceDocumentElement extends UmbObserverMixin(UmbContextCons icon: 'info', }, }, + { + type: 'workspaceAction', + alias: 'Umb.WorkspaceAction.Document.SaveAndPreview', + name: 'Save Document Workspace Action', + loader: () => import('../shared/actions/save/workspace-action-node-save.element'), + meta: { + workspaces: ['Umb.Workspace.Document'], + label: 'Save and preview', + }, + }, + { + type: 'workspaceAction', + alias: 'Umb.WorkspaceAction.Document.Save', + name: 'Save Document Workspace Action', + loader: () => import('../shared/actions/save/workspace-action-node-save.element'), + meta: { + workspaces: ['Umb.Workspace.Document'], + look: 'secondary', + label: 'Save' + }, + }, + { + type: 'workspaceAction', + alias: 'Umb.WorkspaceAction.Document.SaveAndPublish', + name: 'Save Document Workspace Action', + loader: () => import('../shared/actions/save/workspace-action-node-save.element'), + meta: { + workspaces: ['Umb.Workspace.Document'], + label: 'Save and publish', + look: 'primary', + color: 'positive' + }, + }, ]; dashboards.forEach((dashboard) => { diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts index e03c33295e..12a71ccb71 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts @@ -4,6 +4,7 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; import type { UUIButtonState } from '@umbraco-ui/uui'; import type { UmbWorkspaceNodeContext } from '../../workspace-context/workspace-node.context'; import { UmbContextConsumerMixin } from '@umbraco-cms/context-api'; +import { ManifestWorkspaceAction } from '@umbraco-cms/models'; @customElement('umb-workspace-action-node-save') export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(LitElement) { @@ -15,6 +16,8 @@ export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(L private _workspaceContext?: UmbWorkspaceNodeContext; + public manifest?: ManifestWorkspaceAction; + constructor() { super(); @@ -38,9 +41,9 @@ export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(L render() { return html``; } } diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts index 0e007307fc..10428653e3 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts @@ -189,7 +189,7 @@ export class UmbWorkspaceContentElement extends UmbContextProviderMixin( - + `; } diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-entity/workspace-entity.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-entity/workspace-entity.element.ts index 1511f2f33d..e22330651a 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-entity/workspace-entity.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-entity/workspace-entity.element.ts @@ -48,6 +48,11 @@ export class UmbWorkspaceEntity extends UmbContextConsumerMixin(UmbObserverMixin router-slot { height: 100%; } + + umb-extension-slot[slot='actions'] { + display: flex; + gap: 6px; + } `, ]; diff --git a/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts b/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts index 769880df95..9791820eb3 100644 --- a/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts +++ b/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts @@ -1,3 +1,4 @@ +import type { InterfaceColor, InterfaceLook } from '@umbraco-ui/uui-base/lib/types/index' import type { ManifestElement } from './models'; export interface ManifestWorkspaceAction extends ManifestElement { @@ -7,4 +8,7 @@ export interface ManifestWorkspaceAction extends ManifestElement { export interface MetaEditorAction { workspaces: Array; + label: string, + look?: InterfaceLook, + color?: InterfaceColor, } From a763c48013bd36ee6f688078775e388412b22006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:29:27 +0100 Subject: [PATCH 02/15] todo --- .../src/core/extensions-registry/workspace-action.models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts b/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts index 9791820eb3..a7ec0f8f5a 100644 --- a/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts +++ b/src/Umbraco.Web.UI.Client/src/core/extensions-registry/workspace-action.models.ts @@ -8,7 +8,7 @@ export interface ManifestWorkspaceAction extends ManifestElement { export interface MetaEditorAction { workspaces: Array; - label: string, + label?: string, //TODO: Use or implement additional label-key look?: InterfaceLook, color?: InterfaceColor, } From fc34aa83105b00693df63f6670a68d3c7548b12b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:29:39 +0100 Subject: [PATCH 03/15] remove comma --- .../workspaces/data-type/workspace-data-type.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts index bf9623039d..f019f7b62b 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts @@ -111,7 +111,7 @@ export class UmbWorkspaceDataTypeElement extends UmbContextProviderMixin( name: 'Save Data Type Workspace Action', loader: () => import('../shared/actions/save/workspace-action-node-save.element'), meta: { - workspaces: ['Umb.Workspace.DataType'], + workspaces: ['Umb.Workspace.DataType'] }, }, ]; From 3be566b2f475477082a6606a2f4c320c8459ef20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:30:13 +0100 Subject: [PATCH 04/15] datatype save style --- .../workspaces/data-type/workspace-data-type.element.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts index f019f7b62b..c6f6367926 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/data-type/workspace-data-type.element.ts @@ -111,7 +111,9 @@ export class UmbWorkspaceDataTypeElement extends UmbContextProviderMixin( name: 'Save Data Type Workspace Action', loader: () => import('../shared/actions/save/workspace-action-node-save.element'), meta: { - workspaces: ['Umb.Workspace.DataType'] + workspaces: ['Umb.Workspace.DataType'], + look: 'primary', + color: 'positive' }, }, ]; From 6920405f438ab27c2144b7db9ba0b1da2f02d61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:30:40 +0100 Subject: [PATCH 05/15] dcument type save --- .../src/backoffice/workspaces/user/workspace-user.element.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user/workspace-user.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user/workspace-user.element.ts index fdc8a9e23e..a16d16ad79 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user/workspace-user.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user/workspace-user.element.ts @@ -165,6 +165,8 @@ export class UmbWorkspaceUserElement extends UmbContextProviderMixin( loader: () => import('../shared/actions/save/workspace-action-node-save.element'), meta: { workspaces: ['Umb.Workspace.User'], + look: 'primary', + color: 'positive' }, }, ]; From a6efb615ae790dc124f4ecc19b7c4d76504146ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:30:46 +0100 Subject: [PATCH 06/15] document type save --- .../workspaces/document-type/workspace-document-type.element.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document-type/workspace-document-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document-type/workspace-document-type.element.ts index e178a8a04d..86ad3620d2 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document-type/workspace-document-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/document-type/workspace-document-type.element.ts @@ -127,6 +127,8 @@ export class UmbWorkspaceDocumentTypeElement extends UmbContextProviderMixin( loader: () => import('../shared/actions/save/workspace-action-node-save.element'), meta: { workspaces: ['Umb.Workspace.DocumentType'], + look: 'primary', + color: 'positive' }, }, ]; From f858eca59f2bcc1ac993044a7af306ef62b38441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:31:04 +0100 Subject: [PATCH 07/15] user group save --- .../workspaces/user-group/workspace-user-group.element.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user-group/workspace-user-group.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user-group/workspace-user-group.element.ts index 7d80f5f8aa..3177483cb1 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user-group/workspace-user-group.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/user-group/workspace-user-group.element.ts @@ -248,6 +248,8 @@ export class UmbWorkspaceUserGroupElement extends UmbContextProviderMixin( loader: () => import('../shared/actions/save/workspace-action-node-save.element'), meta: { workspaces: ['Umb.Workspace.UserGroup'], + look: 'primary', + color: 'positive' }, }, ]; From e99da1fc65157e772f10f36aa4737cfd56faeffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:32:39 +0100 Subject: [PATCH 08/15] media actions --- .../workspaces/media/workspace-media.element.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts index 045f37f9b9..99c625cc9b 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts @@ -2,7 +2,7 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; import { css, html, LitElement } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { UmbWorkspaceMediaContext } from './workspace-media.context'; -import type { ManifestWorkspaceView, ManifestWorkspaceViewCollection } from '@umbraco-cms/models'; +import type { ManifestWorkspaceAction, ManifestWorkspaceView, ManifestWorkspaceViewCollection } from '@umbraco-cms/models'; import { umbExtensionsRegistry } from '@umbraco-cms/extensions-registry'; import { UmbContextConsumerMixin, UmbContextProviderMixin } from '@umbraco-cms/context-api'; @@ -60,7 +60,7 @@ export class UmbWorkspaceMediaElement extends UmbContextConsumerMixin(UmbContext } private _registerWorkspaceViews() { - const dashboards: Array = [ + const dashboards: Array = [ { type: 'workspaceViewCollection', alias: 'Umb.WorkspaceView.Media.Collection', @@ -101,6 +101,17 @@ export class UmbWorkspaceMediaElement extends UmbContextConsumerMixin(UmbContext icon: 'info', }, }, + { + type: 'workspaceAction', + alias: 'Umb.WorkspaceAction.Document.Save', + name: 'Save Document Workspace Action', + loader: () => import('../shared/actions/save/workspace-action-node-save.element'), + meta: { + workspaces: ['Umb.Workspace.Media'], + look: 'primary', + color: 'positive' + }, + } ]; dashboards.forEach((dashboard) => { From 91af793a519d3fed5026cf993e9f115db4db3421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:38:18 +0100 Subject: [PATCH 09/15] type import --- .../shared/actions/save/workspace-action-node-save.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts index 12a71ccb71..8461dc74f2 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts @@ -4,7 +4,7 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; import type { UUIButtonState } from '@umbraco-ui/uui'; import type { UmbWorkspaceNodeContext } from '../../workspace-context/workspace-node.context'; import { UmbContextConsumerMixin } from '@umbraco-cms/context-api'; -import { ManifestWorkspaceAction } from '@umbraco-cms/models'; +import type { ManifestWorkspaceAction } from '@umbraco-cms/models'; @customElement('umb-workspace-action-node-save') export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(LitElement) { From a2f8bb6d4c35454ff70cea2bed5957b9a78c9b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:39:40 +0100 Subject: [PATCH 10/15] onSave handler --- .../shared/actions/save/workspace-action-node-save.element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts index 8461dc74f2..c39dca782e 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts @@ -27,7 +27,7 @@ export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(L ); } - private async _handleSave() { + private async _onSave() { if (!this._workspaceContext) return; this._saveButtonState = 'waiting'; @@ -40,7 +40,7 @@ export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(L render() { return html` Date: Fri, 23 Dec 2022 13:42:14 +0100 Subject: [PATCH 11/15] change html format --- .../save/workspace-action-node-save.element.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts index c39dca782e..d244634dbb 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts @@ -39,12 +39,15 @@ export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(L } render() { - return html``; + return html` + + + `; } } From b585876d7270e0062a7f48decc134c0eda8b554f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 13:54:07 +0100 Subject: [PATCH 12/15] concept on bulk-action for collections --- ...ection-bulk-action-media-delete.element.ts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/components/collection/bulk-actions/collection-bulk-action-media-delete.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/components/collection/bulk-actions/collection-bulk-action-media-delete.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/components/collection/bulk-actions/collection-bulk-action-media-delete.element.ts new file mode 100644 index 0000000000..8ca1b0e038 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/backoffice/components/collection/bulk-actions/collection-bulk-action-media-delete.element.ts @@ -0,0 +1,41 @@ +import { UUITextStyles } from '@umbraco-ui/uui-css'; +import { css, html, LitElement } from 'lit'; +import { customElement } from 'lit/decorators.js'; +import { ifDefined } from 'lit/directives/if-defined.js'; +import type { UmbCollectionContext } from '../collection.context'; +import type { ManifestCollectionBulkAction } from '@umbraco-cms/models'; +import { UmbContextConsumerMixin } from '@umbraco-cms/context-api'; +import { UmbMediaStore, UmbMediaStoreItemType } from '@umbraco-cms/stores/media/media.store'; + +@customElement('umb-collection-bulk-action-media-delete') +export class UmbCollectionBulkActionDeleteElement extends UmbContextConsumerMixin(LitElement) { + static styles = [UUITextStyles, css``]; + + // TODO: make a UmbCollectionContextMedia: + private _collectionContext?: UmbCollectionContext; + + public manifest?: ManifestCollectionBulkAction; + + constructor() { + super(); + + this.consumeContext('umbCollectionContext', (context) => { + this._collectionContext = context; + }); + } + + render() { + // TODO: make a UmbCollectionContextMedia and use a deleteSelection method. + return html` this._collectionContext?.clearSelection()} + label=${ifDefined(this.manifest?.meta.label)} + color="default" + look="secondary">`; + } +} + +declare global { + interface HTMLElementTagNameMap { + 'umb-collection-bulk-action-media-delete': UmbCollectionBulkActionDeleteElement; + } +} From 84450b95fac48c5d0a28743c07d9bb626b885f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 14:05:47 +0100 Subject: [PATCH 13/15] fix empty slot removing label... --- .../shared/actions/save/workspace-action-node-save.element.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts index d244634dbb..f6d07d1ebd 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/actions/save/workspace-action-node-save.element.ts @@ -45,8 +45,7 @@ export class UmbWorkspaceActionNodeSaveElement extends UmbContextConsumerMixin(L look=${this.manifest?.meta.look || 'default'} color=${this.manifest?.meta.color || 'default'} label=${this.manifest?.meta.label || 'Save'} - .state="${this._saveButtonState}"> - + .state="${this._saveButtonState}"> `; } } From 02424ca4fa358bb37cd0dc225399391ebc3d2565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 14:49:51 +0100 Subject: [PATCH 14/15] rename action --- .../backoffice/workspaces/media/workspace-media.element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts index 99c625cc9b..9219277c0c 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/media/workspace-media.element.ts @@ -103,8 +103,8 @@ export class UmbWorkspaceMediaElement extends UmbContextConsumerMixin(UmbContext }, { type: 'workspaceAction', - alias: 'Umb.WorkspaceAction.Document.Save', - name: 'Save Document Workspace Action', + alias: 'Umb.WorkspaceAction.Media.Save', + name: 'Save Media Workspace Action', loader: () => import('../shared/actions/save/workspace-action-node-save.element'), meta: { workspaces: ['Umb.Workspace.Media'], From 293403dcb3b06a4e9989ecb7db6916d736c3d1c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 23 Dec 2022 14:50:37 +0100 Subject: [PATCH 15/15] remove hardcoded workspace actions --- .../workspace-content/workspace-content.element.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts index 10428653e3..617d700acc 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/workspaces/shared/workspace-content/workspace-content.element.ts @@ -189,16 +189,7 @@ export class UmbWorkspaceContentElement extends UmbContextProviderMixin( - + `; }