mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 17:47:46 +01:00
fix get adapter bug
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
parent
1491cf1846
commit
163909579e
@ -17,7 +17,7 @@
|
||||
<div class="form-select">
|
||||
<div class="select providerSelect pull-left">
|
||||
<select name="adapter" id="adapter" [(ngModel)]="target.type" [disabled]="testOngoing || controlEnabled">
|
||||
<option *ngFor="let adapter of adapterList" [ngValue]="adapter" value="{{adapter.type}}">{{adapter.type}}</option>
|
||||
<option *ngFor="let adapter of adapterList" [ngValue]="adapter" value="{{adapter}}">{{adapter}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -146,6 +146,7 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges {
|
||||
// job list hidden
|
||||
this.hideJobs.emit();
|
||||
this.changedRules = this.rules;
|
||||
this.loading = false;
|
||||
// get registry name
|
||||
let targetLists: ReplicationRule[] = rules;
|
||||
if (targetLists && targetLists.length) {
|
||||
@ -163,7 +164,6 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges {
|
||||
forkJoin(...registryList).subscribe((item) => {
|
||||
this.selectedRow = null;
|
||||
this.registryName = item.map(target => target.name);
|
||||
this.loading = false;
|
||||
});
|
||||
}
|
||||
}, error => {
|
||||
|
@ -338,7 +338,7 @@ export class ReplicationDefaultService extends ReplicationService {
|
||||
return observableThrowError("Bad argument");
|
||||
}
|
||||
|
||||
let url: string = `${this._replicateUrl}`;
|
||||
let url: string = `${this._replicateUrl}/executions`;
|
||||
return this.http
|
||||
.post(url, { policy_id: ruleId }, HTTP_JSON_OPTIONS)
|
||||
.pipe(map(response => response)
|
||||
|
Loading…
Reference in New Issue
Block a user