Agent layout fixes (#1559)

* added layout to agent

* formatting

* formatting
This commit is contained in:
Anthony Dresser
2018-06-07 14:57:50 -07:00
committed by GitHub
parent e9747a61ac
commit 0a839c7321
5 changed files with 52 additions and 42 deletions

View File

@@ -7,7 +7,7 @@ import 'vs/css!../common/media/jobs';
import 'sql/parts/dashboard/common/dashboardPanelStyles';
import * as nls from 'vs/nls';
import { Component, Inject, forwardRef, ElementRef, ChangeDetectorRef, ViewChild, Injectable} from '@angular/core';
import { Component, Inject, forwardRef, ElementRef, ChangeDetectorRef, ViewChild, Injectable } from '@angular/core';
import * as Utils from 'sql/parts/connection/common/utils';
import { RefreshWidgetAction, EditDashboardAction } from 'sql/parts/dashboard/common/actions';
import { IColorTheme } from 'vs/workbench/services/themes/common/workbenchThemeService';
@@ -49,8 +49,8 @@ export class AgentViewComponent {
};
constructor(
@Inject(forwardRef(() => ChangeDetectorRef)) private _cd: ChangeDetectorRef){
this._expanded = new Map<string, string>();
@Inject(forwardRef(() => ChangeDetectorRef)) private _cd: ChangeDetectorRef) {
this._expanded = new Map<string, string>();
}
/**
@@ -103,4 +103,8 @@ export class AgentViewComponent {
public setExpanded(jobId: string, errorMessage: string) {
this._expanded.set(jobId, errorMessage);
}
public layout() {
this._panel.layout();
}
}