]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #34953 from s0nea/wip-dashboard-telemetry-url
authorLenz Grimmer <lgrimmer@suse.com>
Mon, 25 May 2020 11:39:55 +0000 (13:39 +0200)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 11:39:55 +0000 (13:39 +0200)
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
1  2 
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts

index 251c27b75bdb74f7a1252ff9845f93038ccd2a57,d9ec0e4f8ec142ffef88a73034650199eee5dc15..b3282e1b5d566672396af4f770dff4a5ed2385f4
@@@ -60,15 -66,18 +62,18 @@@ export class TelemetryComponent extend
      ];
      observableForkJoin(observables).subscribe(
        (resp: object) => {
-         this.moduleEnabled = resp[1]['enabled'];
+         const configResp = resp[1];
+         this.moduleEnabled = configResp['enabled'];
+         this.sendToUrl = configResp['url'];
+         this.sendToDeviceUrl = configResp['device_url'];
          this.options = _.pick(resp[0], this.requiredFields);
-         const configs = _.pick(resp[1], this.requiredFields);
+         const configs = _.pick(configResp, this.requiredFields);
          this.createConfigForm();
          this.configForm.setValue(configs);
 -        this.loading = false;
 +        this.loadingReady();
        },
        (_error) => {
 -        this.error = true;
 +        this.loadingError();
        }
      );
    }