PMCORE-3358:The Update Order is Lost in the Sorting options of the table lists PMCORE_3.7.0 build

Translation

CR
This commit is contained in:
Fabio Guachalla
2021-09-27 10:20:45 -04:00
parent 0a8f28fe31
commit 9ad38aab4c
7 changed files with 125 additions and 1 deletions

View File

@@ -387,6 +387,7 @@ export default {
id: this.id
});
});
Event.$on('clearSortEvent', this.clearSort);
},
watch: {
columns: function (val) {
@@ -789,6 +790,21 @@ export default {
onPostNotes() {
this.$refs["vueTable"].getData();
},
/**
* Reset the sort in the table
*/
clearSort() {
if (this.$refs['vueTable']) {
this.$refs['vueTable'].setOrder(false);
this.$emit("updateSettings", {
data: [],
key: "orderBy",
page: "inbox",
type: "normal",
id: this.id
});
}
}
},
};
</script>