make warnings an array that angularJS can watch
This commit is contained in:
@@ -348,7 +348,7 @@
|
||||
var tokens = [iVariant.language.name];
|
||||
|
||||
localizationService.localize("publish_contentPublishedFailedByMissingName", tokens).then(function (value) {
|
||||
iVariant.warnings = {"message": value};
|
||||
iVariant.warnings = [{"message": value}];
|
||||
});
|
||||
|
||||
return $q(function(resolve, reject) {
|
||||
|
||||
@@ -105,6 +105,11 @@
|
||||
|
||||
|
||||
vm.variants = $scope.model.variants;
|
||||
|
||||
// create warnings array for each variant. This is needed for angular to watch the array.
|
||||
_.forEach(vm.variants, function(varaint) {
|
||||
varaint.warnings = [];
|
||||
});
|
||||
|
||||
if (!$scope.model.title) {
|
||||
localizationService.localize("content_readyToPublish").then(function (value) {
|
||||
|
||||
Reference in New Issue
Block a user