File tree Expand file tree Collapse file tree 5 files changed +34
-0
lines changed
src/Umbraco.Web.UI.Client/src/packages/documents/documents Expand file tree Collapse file tree 5 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export * from './global-contexts/index.js';
99export * from './item/index.js' ;
1010export * from './modals/index.js' ;
1111export * from './paths.js' ;
12+ export * from './preview/index.js' ;
1213export * from './publishing/index.js' ;
1314export * from './recycle-bin/index.js' ;
1415export * from './reference/index.js' ;
Original file line number Diff line number Diff line change 1+ export * from './preview-option/index.js' ;
Original file line number Diff line number Diff line change 1+ import { UMB_DOCUMENT_WORKSPACE_CONTEXT } from '../../workspace/document-workspace.context-token.js' ;
2+ import { UmbPreviewOptionActionBase } from './preview-option-action-base.controller.js' ;
3+
4+ export class UmbDefaultPreviewOptionAction extends UmbPreviewOptionActionBase {
5+ override async execute ( ) {
6+ const workspaceContext = await this . getContext ( UMB_DOCUMENT_WORKSPACE_CONTEXT ) ;
7+ workspaceContext ?. saveAndPreview ( ) ;
8+ }
9+ }
10+
11+ export { UmbDefaultPreviewOptionAction as api } ;
Original file line number Diff line number Diff line change 1+ import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry' ;
2+
3+ export const manifest : UmbExtensionManifestKind = {
4+ type : 'kind' ,
5+ alias : 'Umb.Kind.PreviewOption.Default' ,
6+ matchKind : 'default' ,
7+ matchType : 'previewOption' ,
8+ manifest : {
9+ type : 'previewOption' ,
10+ kind : 'default' ,
11+ weight : 1000 ,
12+ api : ( ) => import ( './default.preview-option-action.js' ) ,
13+ elementName : 'umb-workspace-action-menu-item' ,
14+ meta : {
15+ icon : '' ,
16+ label : '(Missing label in manifest)' ,
17+ } ,
18+ } ,
19+ } ;
Original file line number Diff line number Diff line change 1+ import { manifest as defaultKind } from './default.preview-option.kind.js' ;
12import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry' ;
23export const manifests : Array < UmbExtensionManifest | UmbExtensionManifestKind > = [
4+ defaultKind ,
35] ;
You can’t perform that action at this time.
0 commit comments