EDUCATOR-699 Modify deleted group warning on the unit/container page
EDUCATOR-1001 Fix language for visibility editor and validation to include units
This commit is contained in:
@@ -19,7 +19,11 @@ define(['backbone', 'gettext', 'underscore'], function(Backbone, gettext, _) {
|
||||
var summary = 'summary' in response ? response.summary : {};
|
||||
var messages = 'messages' in response ? response.messages : [];
|
||||
if (!summary.text) {
|
||||
summary.text = gettext('This component has validation issues.');
|
||||
if (response.isUnit) {
|
||||
summary.text = gettext('This unit has validation issues.');
|
||||
} else {
|
||||
summary.text = gettext('This component has validation issues.');
|
||||
}
|
||||
}
|
||||
if (!summary.type) {
|
||||
summary.type = this.WARNING;
|
||||
|
||||
Reference in New Issue
Block a user