CompleteState.ts 374 B

1234567891011
  1. import { LaunchContext, LaunchState, LaunchStateId } from './LaunchState';
  2. export class CompleteState implements LaunchState {
  3. readonly id = LaunchStateId.Complete;
  4. async enter(context: LaunchContext): Promise<null> {
  5. const i18n = context.kernel.i18n;
  6. context.progress({ state: this.id, title: i18n.t('launch.finished'), progress: 1 });
  7. return null;
  8. }
  9. }