summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-09-26 00:17:13 +0200
committerTor Andersson <tor@ccxvii.net>2024-09-26 00:18:23 +0200
commit2146f9bfb055f890ae8f8296b5c218f039ba067e (patch)
tree997db645fae4d367af69db3195e09087c5bf6716
parentcb8c881b2792579d5b85e4b7a395e40eba1d3fc5 (diff)
downloadserver-2146f9bfb055f890ae8f8296b5c218f039ba067e.tar.gz
Allow resigning in 3p+ games.
-rw-r--r--public/common/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/common/client.js b/public/common/client.js
index b39642c..3bc8aff 100644
--- a/public/common/client.js
+++ b/public/common/client.js
@@ -766,7 +766,7 @@ function confirm_resign() {
}
function add_resign_menu() {
- if (Object.keys(roles).length <= 2) {
+ if (Object.keys(roles).length > 1) {
let popup = document.querySelector("#toolbar details menu")
popup.insertAdjacentHTML("beforeend", '<li class="resign separator">')
popup.insertAdjacentHTML("beforeend", '<li class="resign" onclick="confirm_resign()">Resign')