mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-04-06 09:05:18 +00:00
Add connection warning style logic and settings UI dropdown
This commit is contained in:
@@ -281,7 +281,11 @@ export class ModuleLog extends AbstractObsidianModule {
|
||||
const fileStatus = this.activeFileStatus.value;
|
||||
if (fileStatus && !this.settings.hideFileWarningNotice) messageLines.push(fileStatus);
|
||||
const messages = (await this.services.appLifecycle.getUnresolvedMessages()).flat().filter((e) => e);
|
||||
messageLines.push(...messages);
|
||||
if (this.settings.connectionWarningStyle === "banner") {
|
||||
messageLines.push(...messages);
|
||||
} else if (this.settings.connectionWarningStyle === "icon") {
|
||||
if (messages.length > 0) messageLines.push("🔗❌");
|
||||
}
|
||||
this.messageArea.innerText = messageLines.map((e) => `⚠️ ${e}`).join("\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user