We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02c9ab1 commit fc33ed1Copy full SHA for fc33ed1
1 file changed
src/settings.ts
@@ -31,15 +31,12 @@ export class SettingTab extends PluginSettingTab {
31
const { containerEl } = this;
32
containerEl.empty();
33
34
- if (this.plugin.settings.did) {
+ if (this.plugin.client.loggedIn) {
35
const displayName = this.plugin.client.actor?.handle || this.plugin.settings.did;
36
37
new Setting(containerEl)
38
- .setName("Logged in")
39
- .setDesc(displayName);
40
-
41
- new Setting(containerEl)
42
- .setName("Log out")
+ .setName("Logged in as @" + displayName)
+ .setDesc(this.plugin.client.actor?.did as string || "")
43
.addButton((button) =>
44
button
45
.setButtonText("Log out")
0 commit comments