Skip to content

Commit 94b3e66

Browse files
committed
better settings layout
1 parent 02c9ab1 commit 94b3e66

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

.github/workflows/deploy_static.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
1-
# Simple workflow for deploying static content to GitHub Pages
21
name: Deploy static content to Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
7-
# branches: ["main"]
8-
branches: ["**"]
5+
tags:
6+
- "*"
97

108
# Allows you to run this workflow manually from the Actions tab
119
workflow_dispatch:
1210

13-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1411
permissions:
1512
contents: read
1613
pages: write
1714
id-token: write
1815

19-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2116
concurrency:
2217
group: "pages"
2318
cancel-in-progress: false
2419

2520
jobs:
26-
# Single deploy job since we're just deploying
2721
deploy:
2822
environment:
2923
name: github-pages

src/settings.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@ export class SettingTab extends PluginSettingTab {
3131
const { containerEl } = this;
3232
containerEl.empty();
3333

34-
if (this.plugin.settings.did) {
34+
if (this.plugin.client.loggedIn) {
3535
const displayName = this.plugin.client.actor?.handle || this.plugin.settings.did;
3636

3737
new Setting(containerEl)
38-
.setName("Logged in")
39-
.setDesc(displayName);
40-
41-
new Setting(containerEl)
42-
.setName("Log out")
38+
.setName("Logged in as @" + displayName)
39+
.setDesc(this.plugin.client.actor?.did as string || "")
4340
.addButton((button) =>
4441
button
4542
.setButtonText("Log out")

0 commit comments

Comments
 (0)