Format with prettier. Use screen mode for invitation import - dialog mode is broken.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { FlowContext, StepType } from '../types.js';
|
||||
import { WizardFlow } from './WizardFlow.js';
|
||||
import type { FlowContext, StepType } from "../types.js";
|
||||
import { WizardFlow } from "./WizardFlow.js";
|
||||
|
||||
/**
|
||||
* Flow strategy for transaction-based actions.
|
||||
@@ -10,15 +10,15 @@ import { WizardFlow } from './WizardFlow.js';
|
||||
* another party to complete.
|
||||
*/
|
||||
export class TransactionWizardFlow extends WizardFlow {
|
||||
readonly type = 'transaction' as const;
|
||||
readonly type = "transaction" as const;
|
||||
|
||||
getStepTypes(context: FlowContext): StepType[] {
|
||||
const steps: StepType[] = [];
|
||||
if (context.availableRoles.length > 1) steps.push('role-select');
|
||||
if (context.hasVariables) steps.push('variables');
|
||||
if (context.shouldCollectInputs) steps.push('inputs');
|
||||
steps.push('review');
|
||||
steps.push('publish');
|
||||
if (context.availableRoles.length > 1) steps.push("role-select");
|
||||
if (context.hasVariables) steps.push("variables");
|
||||
if (context.shouldCollectInputs) steps.push("inputs");
|
||||
steps.push("review");
|
||||
steps.push("publish");
|
||||
return steps;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,6 @@ export class TransactionWizardFlow extends WizardFlow {
|
||||
}
|
||||
|
||||
getFinalActionLabel(context: FlowContext): string {
|
||||
return this.canFinalize(context) ? 'Sign & Broadcast' : 'Done';
|
||||
return this.canFinalize(context) ? "Sign & Broadcast" : "Done";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user