Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Commit

Permalink
Migrate to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kuleshov committed Oct 6, 2017
1 parent 657838b commit b661e93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/dashboard-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var CustomExtensions;
if (value.length) {
var newDashboardId = value[0];
if (_this._dashboardControl.dashboardContainer() && _this._dashboardControl.dashboardContainer().id != newDashboardId) {
_this._dashboardControl.dashboardServiceClient.loadDashboard(newDashboardId);
_this._dashboardControl.loadDashboard(newDashboardId);
}
}
});
Expand Down Expand Up @@ -95,7 +95,7 @@ var CustomExtensions;
CustomDashboardPanelExtension.prototype.updateDashboardsList = function () {
var _this = this;
var dashboardContainer = this._dashboardControl.dashboardContainer();
this._dashboardControl.dashboardServiceClient.requestDashboardList().done(function (availableDashboards) {
this._dashboardControl.requestDashboardList().done(function (availableDashboards) {
_this.availableDashboards(availableDashboards);
});
};
Expand Down
2 changes: 1 addition & 1 deletion dist/dashboard-panel.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/dashboard-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module CustomExtensions {
if(value.length) {
var newDashboardId = value[0];
if(this._dashboardControl.dashboardContainer()&&this._dashboardControl.dashboardContainer().id!=newDashboardId) {
this._dashboardControl.dashboardServiceClient.loadDashboard(newDashboardId);
this._dashboardControl.loadDashboard(newDashboardId);
}
}
});
Expand Down Expand Up @@ -86,7 +86,7 @@ module CustomExtensions {

updateDashboardsList() {
var dashboardContainer = this._dashboardControl.dashboardContainer();
this._dashboardControl.dashboardServiceClient.requestDashboardList().done((availableDashboards: Array<DevExpress.Dashboard.IDashboardInfo>) => {
this._dashboardControl.requestDashboardList().done((availableDashboards: Array<DevExpress.Dashboard.IDashboardInfo>) => {
this.availableDashboards(availableDashboards);
});
}
Expand Down

0 comments on commit b661e93

Please sign in to comment.