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

@@ -678,6 +678,7 @@ export default {
id: that.data.customListId
});
});
Event.$on('clearSortEvent', this.clearSort);
},
watch: {
columns: function(val) {
@@ -1238,6 +1239,21 @@ export default {
return dataEllipsisMap[page];
}
},
/**
* Reset the sort in the table
*/
clearSort() {
if (this.$refs['vueTable']) {
this.$refs['vueTable'].setOrder(false)
this.$emit("updateSettings", {
data: [],
key: "orderBy",
page: that.data.pageParent,
type: "custom",
id: that.data.customListId
});
}
}
};
</script>
<style>