Add default column sort on members list table

This commit is contained in:
Patrick Smith
2018-11-27 16:02:56 -05:00
parent 01f588d54d
commit d6d417e8f9
2 changed files with 60 additions and 2 deletions

View File

@@ -90,6 +90,8 @@ export default {
},
]
const defaultSortColumn = 'Name'
return {
searchValue: '',
status: '',
@@ -97,7 +99,7 @@ export default {
role: '',
rolesByDisplayName: indexBy(prop('display_name'), this.role_choices),
sortInfo: {
columnName: '',
columnName: defaultSortColumn,
isAscending: true,
columns: indexBy(prop('displayName'), columns)
},
@@ -127,5 +129,7 @@ export default {
getColumns: function() {
return Object.values(this.sortInfo.columns)
}
}
},
template: '<div></div>'
}