From f70b4d5bea623b80d2bb62b4e2a1d6da93550494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr> Date: Tue, 4 Apr 2023 11:37:31 +0200 Subject: [PATCH] fix: PAB table: selected areas when clicking on various cells refs #615 --- src/app/components/pab-table/pab-table.component.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/components/pab-table/pab-table.component.ts b/src/app/components/pab-table/pab-table.component.ts index c835b87b..8d48ab20 100644 --- a/src/app/components/pab-table/pab-table.component.ts +++ b/src/app/components/pab-table/pab-table.component.ts @@ -481,6 +481,7 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni // 1 col for wall this.headers.push({ title: this.i18nService.localizeText("INFO_PB_CLOISON"), + selectable: bs }); // 1 header for each device of the wall having the most devices (including downwall) for (let i = 0; i < maxNbDevices; i++) { @@ -577,7 +578,8 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni }); // empty line (EB cell, see note) deviceParamRow.cells.push({ - colspan: 3 + colspan: 3, + selectable: cloison }); // ZRAM deviceParamRow.cells.push({ @@ -604,7 +606,8 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni }); // empty cell (EZRAM cell, see note) deviceParamRow.cells.push({ - rowspan: paramRowCount + rowspan: paramRowCount, + selectable: cloison }); } else if (r === 2) { @@ -696,7 +699,7 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni tableRow.cells.push({ colspan: 2, rowspan: remaining, - selectable: ps + selectable: struct }); } } -- GitLab