Skip to content

Commit 357dbaf

Browse files
FOUR-25986:Changes in columns are not synchronous in cases table
1 parent b1ffba1 commit 357dbaf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

resources/js/components/shared/LaunchpadSettingsModal.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ export default {
278278
dataColumns: [],
279279
},
280280
ScreenDefaultId: [0, "tce-student", "tce-college", "tce-grants"],
281+
refresh: false, // This is used to check if the columns are updated
281282
};
282283
},
283284
computed: {
@@ -491,11 +492,15 @@ export default {
491492
indexImage: null,
492493
type: "add",
493494
};
494-
if (this.oldScreen !== this.selectedScreen.id) {
495+
496+
if (this.oldScreen !== this.selectedScreen.id || this.refresh) {
495497
ProcessMaker.EventBus.$emit(
496498
"reloadByNewScreen",
497499
this.selectedScreenId,
498500
);
501+
502+
// Reset the updateColumns flag
503+
this.refresh = false;
499504
}
500505
ProcessMaker.EventBus.$emit("getLaunchpadImagesEvent", params);
501506
ProcessMaker.EventBus.$emit("getChartId", this.selectedSavedChart.id);
@@ -687,6 +692,7 @@ export default {
687692
});
688693
},
689694
updateColumns(columns, type) {
695+
this.refresh = true;
690696
if (type === "tasks") {
691697
this.myTasks.currentColumns = columns;
692698
} else {

0 commit comments

Comments
 (0)