From c306f13dc8f31e05d4597749bee694e5ebf0585a Mon Sep 17 00:00:00 2001 From: IdanL Date: Mon, 28 Oct 2024 21:21:36 +0200 Subject: [PATCH] add warning to delete folder setting --- components/Settings.ts | 4 ++-- manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Settings.ts b/components/Settings.ts index b46fe48..afe4009 100644 --- a/components/Settings.ts +++ b/components/Settings.ts @@ -1,5 +1,4 @@ import RedirectPlugin from "../main"; - import { App, Notice, PluginSettingTab, Setting } from "obsidian"; export default class RedirectSettingsTab extends PluginSettingTab { @@ -53,11 +52,12 @@ export default class RedirectSettingsTab extends PluginSettingTab { new Setting(containerEl) .setName("Delete Redirects Folder") .setDesc( - "Before uninstalling plugin, manually delete the `_redirects` folder to remove unnecessary files." + "Before uninstalling the plugin, manually delete the `_redirects` folder to remove unnecessary files." ) .addButton((button) => { button.setButtonText("Delete"); button.setTooltip("Delete the Redirects folder."); + button.setWarning(); button.onClick((evt) => { const redirectsFolder = this.app.vault.getFolderByPath("_redirects"); diff --git a/manifest.json b/manifest.json index c187f29..b0da7ba 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "Synonyms", "version": "1.0.0", "minAppVersion": "0.15.0", - "description": "Create synonyms that direct to the same note.", + "description": "", "author": "Idan Liberman", "isDesktopOnly": false }