From 163909579e113d27b6fa3aeac629e5b2d0552ca0 Mon Sep 17 00:00:00 2001 From: FangyuanCheng Date: Fri, 29 Mar 2019 18:00:46 +0800 Subject: [PATCH] fix get adapter bug Signed-off-by: FangyuanCheng --- .../create-edit-endpoint/create-edit-endpoint.component.html | 2 +- .../list-replication-rule/list-replication-rule.component.ts | 2 +- src/portal/lib/src/service/replication.service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.html b/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.html index 9ae088dec..f252a8394 100644 --- a/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.html +++ b/src/portal/lib/src/create-edit-endpoint/create-edit-endpoint.component.html @@ -17,7 +17,7 @@
diff --git a/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts b/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts index 42e7623e5..e3e16ea42 100644 --- a/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts +++ b/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts @@ -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 => { diff --git a/src/portal/lib/src/service/replication.service.ts b/src/portal/lib/src/service/replication.service.ts index 400288769..1ff09de9e 100644 --- a/src/portal/lib/src/service/replication.service.ts +++ b/src/portal/lib/src/service/replication.service.ts @@ -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)