From d5139d41fbca9295f3b8e376e0123b09170a6091 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 3 Oct 2023 11:53:14 -0600 Subject: [PATCH] Api: Show nm columns from favourites Need to update preferences before submitting --- api/js/etemplate/et2_extension_nextmatch.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 32bde92a6c..58cdbe4cef 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -2238,6 +2238,11 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 } } + columnMgr.setColumnVisibilitySet(visibility); + + // We don't want to update user's preference, so directly update + this.dataview._updateColumns(); + if(need_reload) { // We need to change preferences and reload to get columns that were hidden during the first load @@ -2246,11 +2251,6 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 return; } - columnMgr.setColumnVisibilitySet(visibility); - - // We don't want to update user's preference, so directly update - this.dataview._updateColumns(); - // Allow column widgets a chance to resize this.iterateOver(function(widget) {