Initial downtime layout rework

This commit is contained in:
WBHarry 2025-07-17 16:21:11 +02:00
parent 475a63f120
commit 15ca55bacf
5 changed files with 46 additions and 72 deletions

View file

@ -45,7 +45,7 @@ export default class DhpDowntime extends HandlebarsApplicationMixin(ApplicationV
super._attachPartListeners(partId, htmlElement, options);
htmlElement
.querySelectorAll('.activity-image')
.querySelectorAll('.activity-select-section')
.forEach(element => element.addEventListener('contextmenu', this.deselectMove.bind(this)));
}
@ -103,7 +103,7 @@ export default class DhpDowntime extends HandlebarsApplicationMixin(ApplicationV
}
deselectMove(event) {
const button = event.target.closest('.activity-image');
const button = event.target.closest('.activity-select-section');
const move = button.dataset.move;
this.moveData[button.dataset.category].moves[move].selected = this.moveData[button.dataset.category].moves[move]
.selected