From fd3f670103ea88c427bf0fe4675b3b01f8556c39 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Fri, 17 Mar 2023 19:06:40 +0000 Subject: [PATCH] Remove column flex logic Signed-off-by: Stephanie Leary --- Open-ILS/src/eg2/src/app/share/grid/grid.ts | 7 ------- 1 file changed, 7 deletions(-) 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 3c7c6baf7f..9663876f92 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -17,7 +17,6 @@ export class GridColumn { path: string; label: string; headerLabel: string; - flex: number; align: string; hidden: boolean; visible: boolean; @@ -84,7 +83,6 @@ export class GridColumn { col.name = this.name; col.path = this.path; col.label = this.label; - col.flex = this.flex; col.required = this.required; col.hidden = this.hidden; col.asyncSupportsEmptyTermClick = this.asyncSupportsEmptyTermClick; @@ -325,7 +323,6 @@ export class GridColumnSet { reset() { this.columns.forEach(col => { - col.flex = 2; col.sort = 0; col.align = ''; col.visible = this.stockVisible.includes(col.name); @@ -349,7 +346,6 @@ export class GridColumnSet { } if (!col.name) { col.name = col.path; } - if (!col.flex) { col.flex = 2; } if (!col.align) { col.align = ''; } if (!col.label) { col.label = col.name; } if (!col.datatype) { col.datatype = 'text'; } @@ -462,7 +458,6 @@ export class GridColumnSet { return this.displayColumns().map(col => { const c: GridColumnPersistConf = {name : col.name}; if (col.align !== '') { c.align = col.align; } - if (col.flex !== 2) { c.flex = Number(col.flex); } if (Number(col.sort)) { c.sort = Number(col.sort); } return c; }); @@ -503,7 +498,6 @@ export class GridColumnSet { col.visible = true; if (colConf.align) { col.align = colConf.align; } - if (colConf.flex) { col.flex = Number(colConf.flex); } if (colConf.sort) { col.sort = Number(colConf.sort); } // Add to new columns array, avoid dupes. @@ -619,7 +613,6 @@ export interface GridRowFlairEntry { export class GridColumnPersistConf { name: string; - flex?: number; sort?: number; align?: string; } -- 2.11.0