mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 09:59:47 -05:00
No unused locals (#8231)
* add no unused local * fix strict null * fix compile errors * update vscode comments
This commit is contained in:
@@ -6,7 +6,7 @@ import 'vs/css!./media/groupLayout';
|
||||
|
||||
import {
|
||||
Component, Input, Inject, ChangeDetectorRef, forwardRef,
|
||||
ViewChild, ElementRef, OnDestroy, AfterViewInit
|
||||
ElementRef, OnDestroy, AfterViewInit
|
||||
} from '@angular/core';
|
||||
|
||||
import { IComponent, IComponentDescriptor, IModelStore } from 'sql/workbench/browser/modelComponents/interfaces';
|
||||
@@ -39,8 +39,6 @@ export default class GroupContainer extends ContainerBase<GroupLayout> implement
|
||||
|
||||
private _containerLayout: GroupLayout;
|
||||
|
||||
@ViewChild('container', { read: ElementRef }) private _container: ElementRef;
|
||||
|
||||
constructor(
|
||||
@Inject(forwardRef(() => ChangeDetectorRef)) changeRef: ChangeDetectorRef,
|
||||
@Inject(forwardRef(() => ElementRef)) el: ElementRef) {
|
||||
@@ -83,7 +81,7 @@ export default class GroupContainer extends ContainerBase<GroupLayout> implement
|
||||
return this.hasHeader() && this._containerLayout.collapsible === true;
|
||||
}
|
||||
|
||||
private getContainerWidth(): string {
|
||||
public getContainerWidth(): string {
|
||||
if (this._containerLayout && this._containerLayout.width) {
|
||||
let width: string = this._containerLayout.width.toString();
|
||||
if (!endsWith(width, '%') && !endsWith(width.toLowerCase(), 'px')) {
|
||||
@@ -95,11 +93,11 @@ export default class GroupContainer extends ContainerBase<GroupLayout> implement
|
||||
}
|
||||
}
|
||||
|
||||
private getContainerDisplayStyle(): string {
|
||||
public getContainerDisplayStyle(): string {
|
||||
return !this.isCollapsible() || !this.collapsed ? 'block' : 'none';
|
||||
}
|
||||
|
||||
private getHeaderClass(): string {
|
||||
public getHeaderClass(): string {
|
||||
if (this.isCollapsible()) {
|
||||
let modifier = this.collapsed ? 'collapsed' : 'expanded';
|
||||
return `modelview-group-header-collapsible ${modifier}`;
|
||||
@@ -108,7 +106,7 @@ export default class GroupContainer extends ContainerBase<GroupLayout> implement
|
||||
}
|
||||
}
|
||||
|
||||
private changeState(): void {
|
||||
public changeState(): void {
|
||||
if (this.isCollapsible()) {
|
||||
this.collapsed = !this.collapsed;
|
||||
this._changeRef.detectChanges();
|
||||
|
||||
Reference in New Issue
Block a user