Add takeback button

This commit is contained in:
sepia 2025-07-22 19:06:12 -05:00
parent 3093754bd4
commit 1a221bf680
6 changed files with 217 additions and 26 deletions

View file

@ -13,7 +13,19 @@ document.addEventListener('htmx:wsConfigSend', function (e) {
};
} else if (e.target.id == 'resign-button') {
e.detail.parameters = {
type: 'resign'
type: 'resign',
};
} else if (e.target.id == 'takeback-button') {
e.detail.parameters = {
type: 'request_takeback',
};
} else if (e.target.id == 'accept-takeback-button') {
e.detail.parameters = {
type: 'accept_takeback',
};
} else if (e.target.id == 'decline-takeback-button') {
e.detail.parameters = {
type: 'decline_takeback',
};
}
});

View file

@ -271,4 +271,3 @@ button:hover {
#copy-link-button.copied-state {
background-color: var(--color-success);
}