diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/GroupSessionController.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/GroupSessionController.kt index bf8b674..83e4e25 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/GroupSessionController.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/GroupSessionController.kt @@ -178,7 +178,7 @@ class GroupSessionController { observations.add(observation) } GroupSessionManager.invalidate() - if(this::environment.isInitialized && environment.getProperty("smtp.autosendoncomplete")!!.toBoolean()) + if (this::environment.isInitialized && environment.getProperty("smtp.autosendoncomplete")!!.toBoolean()) GlobalScope.launch { if (::mailer.isInitialized) mailer.sendObservationData(observations) diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/ObservationsController.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/ObservationsController.kt index e66ccd6..1d95d04 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/ObservationsController.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/controller/ObservationsController.kt @@ -54,7 +54,6 @@ class ObservationsController { @Autowired lateinit var mailer: Email - /** * Returns a list of all current sites. */ @@ -285,12 +284,11 @@ class ObservationsController { logger.info("Sending Observation data by email") if (::mailer.isInitialized) { val data = getObservations(observationsRequest) - if(data.isEmpty()) + if (data.isEmpty()) return false mailer.sendObservationData(data) return true - } - else + } else logger.error("Mailer has not been initialized.") return false } diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 1797ee3..368cd28 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,28 +1,28 @@ diff --git a/frontend/src/components/ObservationEntry.vue b/frontend/src/components/ObservationEntry.vue index 5f3c072..2009b0b 100644 --- a/frontend/src/components/ObservationEntry.vue +++ b/frontend/src/components/ObservationEntry.vue @@ -3,7 +3,9 @@

{{ description }}

-

{{ scenariofundamental.rating }}

+

+ {{ scenariofundamental.rating }} +

- + - + - + @@ -156,7 +168,7 @@ export default { this.$refs.errorModal.show(); }); this.getTutors(); - this.$emit('refresh'); + this.$emit("refresh"); } }; diff --git a/frontend/src/components/ScoreSelector.vue b/frontend/src/components/ScoreSelector.vue index 40fb029..4c1f630 100644 --- a/frontend/src/components/ScoreSelector.vue +++ b/frontend/src/components/ScoreSelector.vue @@ -33,7 +33,6 @@ export default { }; - diff --git a/frontend/src/views/ObservationComplete.vue b/frontend/src/views/ObservationComplete.vue index ed467c4..807d0f4 100644 --- a/frontend/src/views/ObservationComplete.vue +++ b/frontend/src/views/ObservationComplete.vue @@ -1,11 +1,11 @@ - + diff --git a/frontend/src/views/StartNew.vue b/frontend/src/views/StartNew.vue index edb1dae..f577461 100644 --- a/frontend/src/views/StartNew.vue +++ b/frontend/src/views/StartNew.vue @@ -1,73 +1,98 @@