diff --git a/public/js/components/Stv/Studentenverwaltung/List.js b/public/js/components/Stv/Studentenverwaltung/List.js index c5e029b7a..ed81f8e91 100644 --- a/public/js/components/Stv/Studentenverwaltung/List.js +++ b/public/js/components/Stv/Studentenverwaltung/List.js @@ -154,7 +154,8 @@ export default { filterKontoCount0: undefined, filterKontoMissingCounter: undefined, count: 0, - filteredcount: 0 + filteredcount: 0, + selectedcount: 0 } }, methods: { @@ -165,6 +166,7 @@ export default { this.$refs.new.open(); }, rowSelectionChanged(data) { + this.selectedcount = data.length; this.lastSelected = this.selected; this.$emit('update:selected', data); }, @@ -279,6 +281,23 @@ export default { } } }, + computed: { + countsToHTML: function() { + return this.$p.t('global/anzahl') + + ' (' + + this.$p.t('global/ausgewaehlt') + + ' / ' + + this.$p.t('global/gefiltert') + + ' / ' + + this.$p.t('global/gesamt') + + '): ' + + '' + (this.selectedcount || 0) + '' + + ' / ' + + '' + (this.filteredcount || 0) + '' + + ' / ' + + '' + (this.count || 0) + ''; + } + }, // TODO(chris): focusin, focusout, keydown and tabindex should be in the filter component // TODO(chris): filter component column chooser has no accessibilty features template: ` @@ -286,7 +305,7 @@ export default {