mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 02:37:44 +00:00
add measure to prevent lobby creator from kicking themselves out of the game
This commit is contained in:
@@ -732,7 +732,7 @@ export class PlayerPanel extends LitElement implements Layer {
|
||||
type: "indigo",
|
||||
})
|
||||
: ""}
|
||||
${canKick
|
||||
${canKick && !this.g.isLobbyCreator(other)
|
||||
? actionButton({
|
||||
onClick: (e: MouseEvent) => this.handleKickClick(e, other),
|
||||
icon: disabledIcon,
|
||||
|
||||
Reference in New Issue
Block a user