diff --git a/shell/components/SortableTable/index.vue b/shell/components/SortableTable/index.vue index 45a61870d4c..ff5a43600ba 100644 --- a/shell/components/SortableTable/index.vue +++ b/shell/components/SortableTable/index.vue @@ -333,22 +333,24 @@ export default { this.searchQuery = q; }, 200), + descending(neu, old) { + this.watcherUpdateLiveAndDelayed(neu, old); + }, + + sortFields(neu, old) { + this.watcherUpdateLiveAndDelayed(neu, old); + }, + groupBy(neu, old) { - if (neu !== old) { - this.$nextTick(() => this.updateLiveAndDelayed()); - } + this.watcherUpdateLiveAndDelayed(neu, old); }, namespaces(neu, old) { - if (neu !== old) { - this.$nextTick(() => this.updateLiveAndDelayed()); - } + this.watcherUpdateLiveAndDelayed(neu, old); }, page(neu, old) { - if (neu !== old) { - this.$nextTick(() => this.updateLiveAndDelayed()); - } + this.watcherUpdateLiveAndDelayed(neu, old); }, // Ensure we update live and delayed columns on first load @@ -575,6 +577,12 @@ export default { } }, + watcherUpdateLiveAndDelayed(neu, old) { + if (neu !== old) { + this.$nextTick(() => this.updateLiveAndDelayed()); + } + }, + updateLiveAndDelayed() { if (this.hasLiveColumns) { this.updateLiveColumns();