Commit f57bd5a10b6c9ece6a2cd5204913435265241d4f

Authored by deaflynx
1 parent f867e2c1

Code review: dashboard.service beautify

... ... @@ -165,12 +165,14 @@ export class DashboardService {
165 165
166 166 public assignDashboardToEdge(edgeId: string, dashboardId: string,
167 167 config?: RequestConfig): Observable<Dashboard> {
168   - return this.http.post<Dashboard>(`/api/edge/${edgeId}/dashboard/${dashboardId}`,
169   - null, defaultHttpOptionsFromConfig(config));
  168 + return this.http.post<Dashboard>(`/api/edge/${edgeId}/dashboard/${dashboardId}`, null,
  169 + defaultHttpOptionsFromConfig(config));
170 170 }
171 171
172   - public unassignDashboardFromEdge(edgeId: string, dashboardId: string, config?: RequestConfig) {
173   - return this.http.delete(`/api/edge/${edgeId}/dashboard/${dashboardId}`, defaultHttpOptionsFromConfig(config));
  172 + public unassignDashboardFromEdge(edgeId: string, dashboardId: string,
  173 + config?: RequestConfig) {
  174 + return this.http.delete(`/api/edge/${edgeId}/dashboard/${dashboardId}`,
  175 + defaultHttpOptionsFromConfig(config));
174 176 }
175 177
176 178 }
... ...