Merge pull request #7253 from pureshine/get-adapter

Fix cannot get adapters
This commit is contained in:
Wenkai Yin 2019-03-30 21:27:13 +08:00 committed by GitHub
commit f74a9c7ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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 => {

View File

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