diff --git a/static/resources/js/components/replication/create-policy.directive.js b/static/resources/js/components/replication/create-policy.directive.js index e760045bf..9699ea7f7 100644 --- a/static/resources/js/components/replication/create-policy.directive.js +++ b/static/resources/js/components/replication/create-policy.directive.js @@ -61,6 +61,12 @@ } }); + $scope.$watch('vm.targetId', function(current) { + if(current) { + vm1.selection.id = current; + } + }); + $scope.$watch('replication.destination.endpoint', function(current) { if(current) { vm.notAvailable = false; @@ -320,13 +326,7 @@ case 'EDIT': ctrl.edit(ctrl.policyId); break; - } - - scope.$watch('vm.targetId', function(current) { - if(current) { - scope.replication.destination.selection.id = current; - } - }); + } }); }); diff --git a/static/resources/js/components/replication/list-replication.directive.html b/static/resources/js/components/replication/list-replication.directive.html index 44ca6de0c..fca8e2ded 100644 --- a/static/resources/js/components/replication/list-replication.directive.html +++ b/static/resources/js/components/replication/list-replication.directive.html @@ -60,6 +60,9 @@ +
+   // 'refresh' | tr // +
diff --git a/static/resources/js/services/i18n/locale_messages_en-US.js b/static/resources/js/services/i18n/locale_messages_en-US.js index ab74c8fb0..b6c6a6bb6 100644 --- a/static/resources/js/services/i18n/locale_messages_en-US.js +++ b/static/resources/js/services/i18n/locale_messages_en-US.js @@ -186,5 +186,6 @@ var locale_messages = { 'destination_already_exists': 'Destination already exists.', 'failed_delete_destination': 'Delete destination failed:', 'failed_create_destination': 'Create destination failed:', - 'failed_update_destination': 'Failed update destination:' + 'failed_update_destination': 'Failed update destination:', + 'refresh': 'Refresh' }; \ No newline at end of file diff --git a/static/resources/js/services/i18n/locale_messages_zh-CN.js b/static/resources/js/services/i18n/locale_messages_zh-CN.js index ac2ab15d1..c2d21b813 100644 --- a/static/resources/js/services/i18n/locale_messages_zh-CN.js +++ b/static/resources/js/services/i18n/locale_messages_zh-CN.js @@ -185,5 +185,6 @@ var locale_messages = { 'destination_already_exists': '目标已存在。', 'failed_delete_destination': '删除目标失败:', 'failed_create_destination': '创建目标失败:', - 'failed_update_destination': '修改目标失败:' + 'failed_update_destination': '修改目标失败:', + 'refresh': '刷新' }; \ No newline at end of file