diff options
author | Gourdin Jonathan <jonathan.gourdin@orange.com> | 2018-01-12 11:35:19 +0100 |
---|---|---|
committer | Gourdin Jonathan <jonathan.gourdin@orange.com> | 2018-01-12 15:22:42 +0100 |
commit | 414a03af7951dc69703d57e43f3f91d2aca0a005 (patch) | |
tree | 7a73011be99f4555d232f293e6bf9f2346b6739d /moon_gui/static/app/model/edit/metarules | |
parent | 5d325dfc5d666b345b6555ea9dc4ab3af853be67 (diff) |
Fix GUI
Change-Id: I909038e8d00c97b9e19c97b13836407649b5dc96
Diffstat (limited to 'moon_gui/static/app/model/edit/metarules')
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), + }; |