No sorting for non-ccpo users
This commit is contained in:
parent
63d5f3d25c
commit
bb903ece9f
@ -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;
|
||||
},
|
||||
},
|
||||
|
@ -102,8 +102,8 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th v-for="column in getColumns()"scope="col">
|
||||
<a @click.prevent="updateSortValue(column.attr)" href="">!{ column.displayName }</a>
|
||||
<th @click.prevent="updateSortValue(column.attr)" v-for="column in getColumns()"scope="col">
|
||||
!{ column.displayName }
|
||||
<span v-if="column.attr === sort.columnName && sort.isAscending" class="icon icon--caret_up" aria-idden="true">
|
||||
{{ Icon("caret_down") }}
|
||||
</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user