From 4b967662c6879c4e002a6adc77153ee23e37ba1d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr>
Date: Thu, 30 Jun 2022 16:15:26 +0200
Subject: [PATCH] fix: fish ladder: invalidate "calculate" button if any table
 cell is empty

refs #552
---
 src/app/components/pab-table/pab-table.component.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/components/pab-table/pab-table.component.html b/src/app/components/pab-table/pab-table.component.html
index 293bd1b07..063a7339a 100644
--- a/src/app/components/pab-table/pab-table.component.html
+++ b/src/app/components/pab-table/pab-table.component.html
@@ -85,7 +85,7 @@
                     [class.select]="isSelect(cell)" [attr.rowspan]="rowSpan(cell)" [attr.colspan]="colSpan(cell)"
                     [title]="cellTitle(cell)">
 
-                    <input matInput *ngIf="isNumberInput(cell)" step="0.00000000000001" type="number"
+                    <input matInput *ngIf="isNumberInput(cell)" step="0.00000000000001" type="number" required
                         [(ngModel)]="cell.model.singleValue" (input)="inputValueChanged($event, cell)">
 
                     <mat-select #selectWidget *ngIf="isSelect(cell)" [value]="cell.modelValue"
-- 
GitLab