mirror of
https://github.com/idanlib/ObsidianFastForwardLinkPlugin.git
synced 2026-07-22 11:30:28 +00:00
add warning to delete folder setting
This commit is contained in:
parent
93e48eb95a
commit
c306f13dc8
2 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue