mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-04 04:19:28 +00:00
refactor rowSelectionChanged
This commit is contained in:
@@ -420,8 +420,12 @@ export default {
|
||||
rowSelectionChanged(data, rows, selected, deselected) {
|
||||
this.selectedcount = data.length;
|
||||
|
||||
if(selected.length > 0 || deselected.length > 0){
|
||||
//in case of empty selection (eg. in future or past semester of selected student without sem)
|
||||
if(selected.length == 0 ) {
|
||||
this.lastSelected = this.selected;
|
||||
}
|
||||
|
||||
if(selected.length > 0 || deselected.length > 0){
|
||||
|
||||
//for tags
|
||||
this.selectedRows = this.$refs.table.tabulator.getSelectedRows();
|
||||
|
||||
Reference in New Issue
Block a user