diff --git a/src/app/course/course.ts b/src/app/course/course.ts index 3c053256..2f16330a 100644 --- a/src/app/course/course.ts +++ b/src/app/course/course.ts @@ -6,5 +6,6 @@ export class Course { // These are Scenario IDs scenarios: string[]; keep_vm: boolean; + pauseable: boolean; virtualmachines: Map[]; } diff --git a/src/app/scenario/step.component.html b/src/app/scenario/step.component.html index 41d6d2af..86eda6e3 100644 --- a/src/app/scenario/step.component.html +++ b/src/app/scenario/step.component.html @@ -31,7 +31,7 @@

Finish - + diff --git a/src/app/scenario/step.component.ts b/src/app/scenario/step.component.ts index 0ed96133..628ad72a 100644 --- a/src/app/scenario/step.component.ts +++ b/src/app/scenario/step.component.ts @@ -586,6 +586,14 @@ export class StepComponent implements OnInit, AfterViewInit, OnDestroy { return exists; } + isPauseable(): boolean { + if (this.isContentOnly !== '' && this.isContentOnly) return false; + if (this.course) { + return this.course.pauseable; + } + return this.scenario.pauseable; + } + getBrawlLanguages() { return this.languageCommandService.getLanguageNames(); }