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:
Sofiya Semenova
2017-07-21 17:40:32 +00:00
parent c7db5d894e
commit d888498038
10 changed files with 144 additions and 37 deletions

View File

@@ -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;