update for retrieving replication-jobs.

This commit is contained in:
kunw 2016-06-17 12:33:08 +08:00
parent bd88f01afe
commit 8659dc1988
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@
<hr class="hr-line"/>
<div class="form-inline">
<div class="input-group">
<input type="text" class="form-control" placeholder="" ng-model="vm.replicationJobName" size="30">
<input type="text" class="form-control" placeholder="" ng-model="vm.repositoryName" size="30">
<span class="input-group-btn">
<button class="btn btn-primary" type="button" ng-click="vm.searchReplicationJob()"><span class="glyphicon glyphicon-search"></span></button>
</span>

View File

@ -12,12 +12,12 @@
return listReplicationJob;
function listReplicationJob(policyId, name) {
function listReplicationJob(policyId, repository) {
return $http
.get('/api/jobs/replication/', {
'params': {
'policy_id': policyId,
'name': name
'repository': repository
}
});
}