From: Stephanie Leary Date: Fri, 17 Mar 2023 16:39:05 +0000 (+0000) Subject: Remove default align values X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=df60eff4bf9aa5c795a08c3943bd4b87cbe5d0f4;p=working%2FEvergreen.git Remove default align values Signed-off-by: Stephanie Leary --- 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 efc253faa8..b2e16fa17f 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -327,7 +327,7 @@ export class GridColumnSet { this.columns.forEach(col => { col.flex = 2; col.sort = 0; - col.align = 'left'; + col.align = ''; col.visible = this.stockVisible.includes(col.name); }); } @@ -350,7 +350,7 @@ export class GridColumnSet { if (!col.name) { col.name = col.path; } if (!col.flex) { col.flex = 2; } - if (!col.align) { col.align = 'left'; } + if (!col.align) { col.align = ''; } if (!col.label) { col.label = col.name; } if (!col.datatype) { col.datatype = 'text'; } if (!col.isAuto) { col.headerLabel = col.label; } @@ -461,7 +461,7 @@ export class GridColumnSet { // scrunch the data down to just the needed info. return this.displayColumns().map(col => { const c: GridColumnPersistConf = {name : col.name}; - if (col.align !== 'left') { c.align = col.align; } + 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; @@ -1361,10 +1361,13 @@ export class GridContext { switch (col.align) { case "left": classes.push('text-start'); + break; case "right": classes.push('text-end'); + break; case "center": classes.push('text-center'); + break; } /* Base classes */