Browse Source

Code review: dashboard.service beautify

pull/3811/head
deaflynx 6 years ago
parent
commit
f57bd5a10b
  1. 10
      ui-ngx/src/app/core/http/dashboard.service.ts

10
ui-ngx/src/app/core/http/dashboard.service.ts

@ -165,12 +165,14 @@ export class DashboardService {
public assignDashboardToEdge(edgeId: string, dashboardId: string,
config?: RequestConfig): Observable<Dashboard> {
return this.http.post<Dashboard>(`/api/edge/${edgeId}/dashboard/${dashboardId}`,
null, defaultHttpOptionsFromConfig(config));
return this.http.post<Dashboard>(`/api/edge/${edgeId}/dashboard/${dashboardId}`, null,
defaultHttpOptionsFromConfig(config));
}
public unassignDashboardFromEdge(edgeId: string, dashboardId: string, config?: RequestConfig) {
return this.http.delete(`/api/edge/${edgeId}/dashboard/${dashboardId}`, defaultHttpOptionsFromConfig(config));
public unassignDashboardFromEdge(edgeId: string, dashboardId: string,
config?: RequestConfig) {
return this.http.delete(`/api/edge/${edgeId}/dashboard/${dashboardId}`,
defaultHttpOptionsFromConfig(config));
}
}

Loading…
Cancel
Save