add refresh button onto the sync-image job list.

This commit is contained in:
kunw 2016-06-25 14:19:15 +08:00
parent 384f59344e
commit 4caf2becb4
4 changed files with 14 additions and 9 deletions

View File

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

View File

@ -60,6 +60,9 @@
<button class="btn btn-primary" type="button" ng-click="vm.searchReplicationJob()"><span class="glyphicon glyphicon-search"></span></button>
</span>
</div>
<div class="input-group pull-right">
<a class="btn btn-link" ng-click="vm.searchReplicationJob()"><span class="glyphicon glyphicon-refresh"></span>&nbsp;&nbsp;// 'refresh' | tr //</a>
</div>
</div>
<div class="pane-split" id="down-pane">
<div class="sub-pane-split">

View File

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

View File

@ -185,5 +185,6 @@ var locale_messages = {
'destination_already_exists': '目标已存在。',
'failed_delete_destination': '删除目标失败:',
'failed_create_destination': '创建目标失败:',
'failed_update_destination': '修改目标失败:'
'failed_update_destination': '修改目标失败:',
'refresh': '刷新'
};