Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/obsidian-plugin-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,12 @@ jobs:
defaults:
run:
working-directory: surfsense_obsidian
strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
node-version: 22.x
cache: npm
cache-dependency-path: surfsense_obsidian/package-lock.json

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-obsidian-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 22.x
cache: npm
cache-dependency-path: surfsense_obsidian/package-lock.json

Expand Down
3 changes: 2 additions & 1 deletion surfsense_obsidian/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class SurfSenseSettingTab extends PluginSettingTab {
if (this.plugin.settings.searchSpaceId !== null) {
try {
await this.plugin.engine.ensureConnected();
await this.plugin.engine.flushQueue();
await this.plugin.engine.maybeReconcile(true);
new Notice("Surfsense: vault connected.");
this.display();
} catch (err) {
Expand Down Expand Up @@ -267,6 +267,7 @@ export class SurfSenseSettingTab extends PluginSettingTab {

private renderConnectionHeading(containerEl: HTMLElement): void {
const heading = new Setting(containerEl).setName("Connection").setHeading();
heading.nameEl.addClass("surfsense-connection-heading");
const indicator = heading.nameEl.createSpan({
cls: "surfsense-connection-indicator",
});
Expand Down
8 changes: 6 additions & 2 deletions surfsense_obsidian/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@

.surfsense-connection-indicator {
display: inline-flex;
margin-left: 8px;
vertical-align: middle;
width: 14px;
height: 14px;
}

.surfsense-connection-heading {
display: inline-flex;
align-items: center;
gap: 8px;
}

.surfsense-connection-indicator svg {
width: 14px;
height: 14px;
Expand Down
Loading