From 2c0df3989352f96e3a7edc5c1a99d570dfb9b610 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 31 Jul 2019 14:19:08 -0700 Subject: [PATCH] LP1831788: (follow-up) removing small linting errors, unused imports Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../src/app/share/grid/grid-column-width.component.ts | 5 ++--- .../src/eg2/src/app/share/grid/grid-column.component.ts | 2 +- .../src/app/share/grid/grid-filter-control.component.ts | 9 +++------ .../src/eg2/src/app/share/grid/grid-toolbar.component.ts | 6 ++---- Open-ILS/src/eg2/src/app/share/grid/grid.component.ts | 4 +--- Open-ILS/src/eg2/src/app/share/grid/grid.ts | 2 +- 6 files changed, 10 insertions(+), 18 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-column-width.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-column-width.component.ts index f9bacf4dad..bb597cd86e 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-column-width.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-column-width.component.ts @@ -1,6 +1,5 @@ -import {Component, Input, OnInit, Host} from '@angular/core'; -import {GridContext, GridColumn, GridColumnSet, - GridDataSource} from './grid'; +import {Component, Input, OnInit} from '@angular/core'; +import {GridContext, GridColumn, GridColumnSet} from './grid'; @Component({ selector: 'eg-grid-column-width', diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts index 95af28d8bf..b616b82480 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts @@ -1,5 +1,5 @@ import {Component, Input, OnInit, Host, TemplateRef} from '@angular/core'; -import {GridColumn, GridColumnSet} from './grid'; +import {GridColumn} from './grid'; import {GridComponent} from './grid.component'; @Component({ diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts index e6a36523dc..f5931b4059 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts @@ -1,9 +1,7 @@ import {Component, Input, OnInit, QueryList, ViewChildren} from '@angular/core'; -import {GridContext, GridColumn, GridRowSelector, - GridColumnSet, GridDataSource} from './grid'; +import {GridContext, GridColumn} from './grid'; import {IdlObject} from '@eg/core/idl.service'; -import {ComboboxComponent, - ComboboxEntry} from '@eg/share/combobox/combobox.component'; +import {ComboboxComponent} from '@eg/share/combobox/combobox.component'; import {DateSelectComponent} from '@eg/share/date-select/date-select.component'; import {OrgSelectComponent} from '@eg/share/org-select/org-select.component'; import {OrgService} from '@eg/core/org.service'; @@ -218,7 +216,7 @@ export class GridFilterControlComponent implements OnInit { if ( (col.filterOperator !== 'null') && (col.filterOperator !== 'not null') && (!col.filterValue || col.filterValue === '') && - (col.filterValue != '0') ) { + (col.filterValue !== '0') ) { // if value is empty and we're _not_ checking for null/not null, clear // the filter delete this.context.dataSource.filters[col.name]; @@ -226,7 +224,6 @@ export class GridFilterControlComponent implements OnInit { } else { let op: string = col.filterOperator; let val: string = col.filterValue; - const name: string = col.name; if (col.filterOperator === 'null') { op = '='; val = null; diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts index fbc826c062..ae55c56f32 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts @@ -1,8 +1,6 @@ -import {Component, Input, OnInit, Host} from '@angular/core'; +import {Component, Input, OnInit} from '@angular/core'; import {DomSanitizer, SafeUrl} from '@angular/platform-browser'; -import {Pager} from '@eg/share/util/pager'; -import {GridColumn, GridColumnSet, GridToolbarButton, - GridToolbarAction, GridContext, GridDataSource} from '@eg/share/grid/grid'; +import {GridToolbarButton, GridToolbarAction, GridContext} from '@eg/share/grid/grid'; import {GridColumnWidthComponent} from './grid-column-width.component'; import {GridPrintComponent} from './grid-print.component'; diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts index b043a418be..69edbf3130 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts @@ -1,12 +1,10 @@ import {Component, Input, Output, OnInit, AfterViewInit, EventEmitter, - OnDestroy, HostListener, ViewEncapsulation, QueryList, ViewChildren} from '@angular/core'; -import {Subscription} from 'rxjs'; + OnDestroy, ViewEncapsulation} from '@angular/core'; import {IdlService} from '@eg/core/idl.service'; import {OrgService} from '@eg/core/org.service'; import {ServerStoreService} from '@eg/core/server-store.service'; import {FormatService} from '@eg/core/format.service'; import {GridContext, GridColumn, GridDataSource, GridRowFlairEntry} from './grid'; -import {GridFilterControlComponent} from './grid-filter-control.component'; /** * Main grid entry point. diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid.ts b/Open-ILS/src/eg2/src/app/share/grid/grid.ts index 18d4f7adbe..600f815564 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -417,7 +417,7 @@ export class GridRowSelector { // In some contexts (template checkboxes) the value for an index is // set to false to deselect instead of having it removed (via deselect()). // NOTE GridRowSelector has no knowledge of when a row is no longer - // present in the grid. Use GridContext.getSelectedRows() to get + // present in the grid. Use GridContext.getSelectedRows() to get // list of selected rows that are still present in the grid. selected() { return Object.keys(this.indexes).filter( -- 2.43.2