From e9869758b50f7576a541c5efdd5c70565b4b8198 Mon Sep 17 00:00:00 2001
From: Swaggeroo <57057662+Swaggeroo@users.noreply.github.com>
Date: Tue, 13 Aug 2024 18:32:30 +0200
Subject: [PATCH] Bug fix / Refactor Added Ai Image Analyzer Text again and
removed unnecessary var indexingDesc (#388)
---
src/settings.ts | 23 +++++------------------
1 file changed, 5 insertions(+), 18 deletions(-)
diff --git a/src/settings.ts b/src/settings.ts
index 767af73..695d8f8 100644
--- a/src/settings.ts
+++ b/src/settings.ts
@@ -128,24 +128,6 @@ export class SettingsTab extends PluginSettingTab {
//#region Indexing
- const indexingDesc = new DocumentFragment()
- indexingDesc.createSpan({}, span => {
- span.innerHTML = `⚠️ Changing indexing settings will clear the cache, and requires a restart of Obsidian.
`
- if (textExtractor) {
- span.innerHTML += `
- 👍 You have installed Text Extractor, Omnisearch can use it to index PDFs and images contents.
-
Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`
- } else {
- span.innerHTML += `⚠️ Omnisearch requires Text Extractor to index PDFs and images.`
- }
-
- if (aiImageAnalyzer) {
- span.innerHTML += `
👍 You have installed AI Image Analyzer, Omnisearch can use it to index images contents with ai.`
- }else {
- span.innerHTML += `
⚠️ Omnisearch requires AI Image Analyzer to index images with ai.`
- }
- })
-
new Setting(containerEl)
.setName('Indexing')
.setHeading()
@@ -156,6 +138,11 @@ export class SettingsTab extends PluginSettingTab {
? `👍 You have installed Text Extractor, Omnisearch can use it to index PDFs and images contents.
Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`
: `⚠️ Omnisearch requires Text Extractor to index PDFs and images.`
+ }
+ ${
+ aiImageAnalyzer
+ ? `
👍 You have installed AI Image Analyzer, Omnisearch can use it to index images contents with ai.`
+ : `
⚠️ Omnisearch requires AI Image Analyzer to index images with ai.`
}`)
)