Skip to content

Commit 077bad5

Browse files
authored
Merge pull request #31 from observatorycontrolsystem/fix/visibility_error
Show error when target is not visible in the Window section
2 parents 5f6e425 + e29ad01 commit 077bad5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/RequestGroupComposition/RequestGroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<custom-field
2525
v-model="requestGroup.name"
2626
field="name"
27-
:label="getFromObject(formConfig, ['requestGroup', 'name', 'label'], 'Name')"
27+
:label="getFromObject(formConfig, ['requestGroup', 'name', 'label'], 'Request Name')"
2828
:desc="getFromObject(formConfig, ['requestGroup', 'name', 'desc'], '')"
2929
:hide="getFromObject(formConfig, ['requestGroup', 'name', 'hide'], false)"
3030
:errors="errors.name"

src/components/RequestGroupComposition/Window.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ export default {
193193
},
194194
computed: {
195195
topLevelErrors: function() {
196-
return extractTopLevelErrors(this.errors);
196+
let combinedError = extractTopLevelErrors(this.errors);
197+
// If showAirmass is false, it means that the airmassData is actually an error message returned from the endpoint
198+
if (!this.showAirmass) {
199+
combinedError = _.concat(combinedError, extractTopLevelErrors(this.airmassData));
200+
}
201+
return combinedError;
197202
}
198203
},
199204
methods: {

0 commit comments

Comments
 (0)