document type action

This commit is contained in:
Niels Lyngsø
2022-12-16 10:51:23 +01:00
parent 1ffe9bdfae
commit e6989bc7ed
2 changed files with 6 additions and 5 deletions

View File

@@ -8,8 +8,9 @@ import { UmbDocumentTypeStore } from '../../../../../core/stores/document-type/d
import { UmbDocumentTypeContext } from '../../document-type.context';
import { UmbContextConsumerMixin } from '@umbraco-cms/context-api';
@customElement('umb-editor-action-document-type-save')
export class UmbEditorActionDocumentTypeSaveElement extends UmbContextConsumerMixin(LitElement) {
@customElement('umb-workspace-action-document-type-save')
export class UmbWorkspaceActionDocumentTypeSaveElement extends UmbContextConsumerMixin(LitElement) {
static styles = [UUITextStyles, css``];
@state()
@@ -57,10 +58,10 @@ export class UmbEditorActionDocumentTypeSaveElement extends UmbContextConsumerMi
}
}
export default UmbEditorActionDocumentTypeSaveElement;
export default UmbWorkspaceActionDocumentTypeSaveElement;
declare global {
interface HTMLElementTagNameMap {
'umb-editor-action-document-type-save': UmbEditorActionDocumentTypeSaveElement;
'umb-workspace-action-document-type-save': UmbWorkspaceActionDocumentTypeSaveElement;
}
}

View File

@@ -81,7 +81,7 @@ export class UmbWorkspaceDocumentTypeElement extends UmbContextProviderMixin(
type: 'workspaceAction',
alias: 'Umb.EditorAction.DocumentType.Save',
name: 'Save Document Type Workspace Action',
loader: () => import('./actions/save/editor-action-document-type-save.element'),
loader: () => import('./actions/save/workspace-action-document-type-save.element'),
meta: {
workspaces: ['Umb.Workspace.DocumentType'],
},