up-doc-save.action.ts
Workspace action that saves the current workflow.
What it does
Section titled “What it does”Structurally identical to up-doc-refresh.action.ts, differing only in which context method it calls.
export class UpDocSaveAction extends UmbWorkspaceActionBase { #retrieveContext: Promise<unknown>; #workspaceContext?: UpDocWorkflowWorkspaceContext;
override async execute() { await this.#retrieveContext; await this.#workspaceContext?.save(); }}Consumes UMB_WORKSPACE_CONTEXT in the constructor as a promise, awaits it in execute(), then calls save().
Delegation
Section titled “Delegation”As with the refresh action, the logic lives in the workspace context rather than the action. UpDocWorkflowWorkspaceContext.save() calls whichever save handler the active view registered.
Used by
Section titled “Used by”manifest.ts— registers the action againstUpDoc.WorkflowWorkspaceup-doc-workflow-workspace.context.ts— providessave()and the handler registry
See also
Section titled “See also”up-doc-refresh.action.ts— the sibling action