From 713084f171cfdfa37fd5b5955ba587e24f674668 Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Tue, 14 Jun 2022 09:49:22 -0400 Subject: [PATCH] Add conditional check to only enable continue button once exercises have been selected --- .../coach/assets/src/views/plan/CreateExamPage/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue index 7acde07dbf..e39e3b0dd4 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue @@ -170,6 +170,7 @@ @@ -334,6 +335,9 @@ addableExercises() { return this.allExercises.filter(exercise => !this.selectedExercises[exercise.id]); }, + exercisesHaveBeenSelected() { + return Object.keys(this.selectedExercises).length > 0; + }, selectAllChecked() { return this.addableExercises.length === 0; },