Add cancellation buttons for draw, rematch, takeback requests
This commit is contained in:
parent
2f46d86947
commit
904a9f973f
3 changed files with 115 additions and 7 deletions
|
|
@ -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',
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue