Skip to content

Commit

Permalink
Surface TileValidationErrors to user in sample/analysis workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Nov 6, 2023
1 parent 1ff7173 commit 8a34e22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,11 @@ define([
params.form.value(params.form.savedData());
});
}).fail(function(error){
console.log(error);
params.pageVm.alert(new params.form.AlertViewModel(
"ep-alert-red",
error.responseJSON.result.title,
error.responseJSON.result.message,
));
self.savingTile(false);
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,11 @@ define([
self.selectSampleLocationInstance(undefined);
})
.fail(function(error){
console.log(error);
params.pageVm.alert(new params.form.AlertViewModel(
"ep-alert-red",
error.responseJSON.result.title,
error.responseJSON.result.message,
));
self.savingTile(false);
})
};
Expand Down

0 comments on commit 8a34e22

Please sign in to comment.