Add cancellation buttons for draw, rematch, takeback requests

This commit is contained in:
sepia 2025-07-22 20:47:05 -05:00
parent 2f46d86947
commit 904a9f973f
3 changed files with 115 additions and 7 deletions

View file

@ -51,5 +51,17 @@ document.addEventListener('htmx:wsConfigSend', function (e) {
e.detail.parameters = {
type: 'decline_rematch',
};
} else if (e.target.id == 'cancel-takeback-request-button') {
e.detail.parameters = {
type: 'cancel_takeback_request',
};
} else if (e.target.id == 'cancel-draw-request-button') {
e.detail.parameters = {
type: 'cancel_draw_request',
};
} else if (e.target.id == 'cancel-rematch-request-button') {
e.detail.parameters = {
type: 'cancel_rematch_request',
};
}
});