aboutsummaryrefslogtreecommitdiffstats
path: root/moon_gui/static/app/model/edit/metarules
diff options
context:
space:
mode:
Diffstat (limited to 'moon_gui/static/app/model/edit/metarules')
-rwxr-xr-xmoon_gui/static/app/model/edit/metarules/action/metarules.controller.edit.js2
-rwxr-xr-xmoon_gui/static/app/model/edit/metarules/action/metarules.edit.basic.dir.js4
-rwxr-xr-xmoon_gui/static/app/model/edit/metarules/metarules.list.dir.js3
3 files changed, 6 insertions, 3 deletions
diff --git a/moon_gui/static/app/model/edit/metarules/action/metarules.controller.edit.js b/moon_gui/static/app/model/edit/metarules/action/metarules.controller.edit.js
index b2ebc45d..de6965d0 100755
--- a/moon_gui/static/app/model/edit/metarules/action/metarules.controller.edit.js
+++ b/moon_gui/static/app/model/edit/metarules/action/metarules.controller.edit.js
@@ -40,7 +40,7 @@
*/
function metaRuleUpdatedSuccess(event, metaRule){
- edit.metaRule = metaRule;
+ angular.copy(metaRule, edit.metaRule);
}
diff --git a/moon_gui/static/app/model/edit/metarules/action/metarules.edit.basic.dir.js b/moon_gui/static/app/model/edit/metarules/action/metarules.edit.basic.dir.js
index 603e7a33..b9dcd19c 100755
--- a/moon_gui/static/app/model/edit/metarules/action/metarules.edit.basic.dir.js
+++ b/moon_gui/static/app/model/edit/metarules/action/metarules.edit.basic.dir.js
@@ -67,13 +67,15 @@
var updatedMetaRule = utilService.transformOne(data, 'meta_rules');
+ angular.copy(updatedMetaRule, edit.metaRule);
+
$translate('moon.model.metarules.edit.basic.success', { metaRuleName: updatedMetaRule.name }).then( function(translatedValue) {
alertService.alertSuccess(translatedValue);
});
edit.loading = false;
- $scope.$emit('event:metaRuleBasicUpdatedSuccess', updatedMetaRule);
+ $scope.$emit('event:metaRuleBasicUpdatedSuccess', edit.metaRule);
}
diff --git a/moon_gui/static/app/model/edit/metarules/metarules.list.dir.js b/moon_gui/static/app/model/edit/metarules/metarules.list.dir.js
index 120b6a8b..9c1bc72e 100755
--- a/moon_gui/static/app/model/edit/metarules/metarules.list.dir.js
+++ b/moon_gui/static/app/model/edit/metarules/metarules.list.dir.js
@@ -86,7 +86,8 @@
'event:metaRuleMapToModelSuccess': $rootScope.$on('event:metaRuleMapToModelSuccess', updateModelFromMapSuccess),
'event:metaRuleUnMappedToModelSuccess': $rootScope.$on('event:metaRuleUnMappedToModelSuccess', modelUnmappedSuccess),
- 'event:metaRuleUnMappedToModelError': $rootScope.$on('event:metaRuleUnMappedToModelError', modelUnmappedError)
+ 'event:metaRuleUnMappedToModelError': $rootScope.$on('event:metaRuleUnMappedToModelError', modelUnmappedError),
+
};