Add takeback button
This commit is contained in:
parent
3093754bd4
commit
1a221bf680
6 changed files with 217 additions and 26 deletions
|
|
@ -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',
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -271,4 +271,3 @@ button:hover {
|
|||
#copy-link-button.copied-state {
|
||||
background-color: var(--color-success);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue