Skip to content

Commit c13c87f

Browse files
web: add missing isStaticMode export to ui-utils.js
Signed-off-by: Jorge Ferreira <jorge.ferreira@precisioninno.com>
1 parent cfb6bd3 commit c13c87f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/web/src/ui-utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
// Shared UI utilities.
55

6+
// True when the app was bootstrapped from a saved/static report
7+
// (i.e. there is no live WebSocket backend).
8+
export function isStaticMode(app) {
9+
return !!app?.wsManager?.isStaticMode;
10+
}
11+
612
// Make table column headers resizable by dragging.
713
export function makeResizableHeaders(table) {
814
// Reset to auto layout so browser computes natural column widths

0 commit comments

Comments
 (0)