diff --git a/ehr/resources/web/ehr/panel/DataEntryPanel.js b/ehr/resources/web/ehr/panel/DataEntryPanel.js index 6aa76d8e3..eaa13aefc 100644 --- a/ehr/resources/web/ehr/panel/DataEntryPanel.js +++ b/ehr/resources/web/ehr/panel/DataEntryPanel.js @@ -116,11 +116,7 @@ Ext4.define('EHR.panel.DataEntryPanel', { }, onValidationStart: function(){ - // Suppress the indicator during initial form load/background reconciliation. - if (!this.hasStoreCollectionLoaded || !this.storeCollection || !this.storeCollection.hasLoaded){ - return; - } - + // A no-op until the panel is built; onStoreCollectionInitialLoad shows the indicator for a validation already in flight. this.validationInProgress = true; this.setValidationIndicatorVisible(true); }, @@ -337,7 +333,8 @@ Ext4.define('EHR.panel.DataEntryPanel', { xtype: 'toolbar', dock: 'bottom', itemId: 'validationIndicator', - hidden: true, + // The initial load's validation of every record is usually still running here, and the submit buttons wait on it + hidden: !(this.storeCollection.validationRequestsInFlight > 0), border: false, plain: true, style: 'background-color: transparent; padding: 12px 0 0 0;', diff --git a/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java b/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java index e81411a9a..b556aa7c0 100644 --- a/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java +++ b/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java @@ -1160,10 +1160,9 @@ private boolean waitForValidationToSettleWith(BooleanSupplier settled, int timeo } /** - * Whether the form has finished reporting: no server validation outstanding and no open grid editor. - * StoreCollection counts validation requests itself, and DataEntryPanel's rendered validating indicator cannot - * stand in for that count because it stays hidden through the form's initial load. An open editor counts because - * DataEntryErrorPanel skips the repaint entirely while one is up, leaving the summary at its pre-edit contents. + * Whether the form has finished reporting: no server validation outstanding (StoreCollection's own request count) + * and no open grid editor. An open editor counts because DataEntryErrorPanel skips the repaint entirely while one + * is up, leaving the summary at its pre-edit contents. * *
Not quiet when the form's scripting is not on the page. Callers reach this mid-navigation, and a wait that * cannot yet tell has to keep polling rather than read the silence as a form that is done.