Updates the perm counter on perm area update.

This commit is contained in:
Daru13 2018-11-22 22:34:45 +01:00
parent 555fa8fb7c
commit 5da4c7050c

View file

@ -770,7 +770,9 @@ class EventDetails {
} }
updatePermManagementCounter () { updatePermManagementCounter () {
let permCounterNode = this.node.find(".cal-detail-perm-count"); let permCounterNode = this.node
.find(".cal-detail-perm-count")
.html(`👤 ${this.event.nbPerms}/${this.event.maxNbPerms}`);
if (this.event.minNbPerms > this.event.nbPerms) { if (this.event.minNbPerms > this.event.nbPerms) {
permCounterNode.addClass("cal-perms-missing"); permCounterNode.addClass("cal-perms-missing");