mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Add account button with log out
Add a button on the right of the top nav bar to access account related functions and add a log out button there. To make it fit on the navbar the text and version is hidden on narrow layouts.
This commit is contained in:
1 parent
9542246414
commit
e1549c1b0c
5 files changed
+106
-6
No files matched your search
@@ -49,6 +49,12 @@ export class Control extends libLink.Link {
|
||||
libPlugin.attachPluginMessages(this, plugin);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flag indicating the connection is in the process of logging out.
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.loggingOut = false;
|
||||
|
||||
this.instanceLogHandlers = new Map();
|
||||
|
||||
this.connector.on("connect", () => {
|
||||
@@ -120,7 +126,7 @@ export class Control extends libLink.Link {
|
||||
}
|
||||
|
||||
async shutdown() {
|
||||
this.connector.setTimeout(30);
|
||||
this.connector.setTimeout(5);
|
||||
|
||||
try {
|
||||
await libLink.messages.prepareDisconnect.send(this);
|
||||
|
||||
Reference in new issue
Block a user