Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ehr/resources/web/ehr/panel/DataEntryPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down Expand Up @@ -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;',
Expand Down
7 changes: 3 additions & 4 deletions ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p>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.
Expand Down
Loading