No sorting for non-ccpo users

This commit is contained in:
richard-dds
2018-10-31 15:52:52 -04:00
parent 63d5f3d25c
commit bb903ece9f
2 changed files with 6 additions and 2 deletions

View File

@@ -133,9 +133,13 @@ export default {
},
dollars: (value) => formatDollars(value, false),
updateSortValue: function(columnName) {
if (!this.isExtended) { return }
// toggle ascending / descending if column is clicked twice
if (columnName === this.sort.columnName) {
this.sort.isAscending = !this.sort.isAscending
}
this.sort.columnName = columnName;
},
},