mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
add refresh button onto the sync-image job list.
This commit is contained in:
parent
384f59344e
commit
4caf2becb4
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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> // 'refresh' | tr //</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pane-split" id="down-pane">
|
||||
<div class="sub-pane-split">
|
||||
|
@ -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'
|
||||
};
|
@ -185,5 +185,6 @@ var locale_messages = {
|
||||
'destination_already_exists': '目标已存在。',
|
||||
'failed_delete_destination': '删除目标失败:',
|
||||
'failed_create_destination': '创建目标失败:',
|
||||
'failed_update_destination': '修改目标失败:'
|
||||
'failed_update_destination': '修改目标失败:',
|
||||
'refresh': '刷新'
|
||||
};
|
Loading…
Reference in New Issue
Block a user