mirror of
https://github.com/aaronsb/obsidian-mcp-plugin.git
synced 2026-07-22 06:45:14 +00:00
Merge pull request #229 from aaronsb/fix/obsidian-review-setwarning
fix: pass Obsidian review — drop deprecated setWarning (closes the 0.11.33 gating Error)
This commit is contained in:
commit
5dd0ee2881
1 changed files with 5 additions and 6 deletions
11
src/main.ts
11
src/main.ts
|
|
@ -1030,12 +1030,11 @@ class MCPSettingTab extends PluginSettingTab {
|
|||
.addButton(button => button
|
||||
.setButtonText('Regenerate')
|
||||
.setTooltip('Generate a new API key')
|
||||
// setDestructive() (the non-deprecated replacement) requires Obsidian
|
||||
// 1.13.0, but our manifest minAppVersion is 1.6.6, so it's not available
|
||||
// to all supported users. Keep setWarning() until minAppVersion is raised
|
||||
// (tracked with the 1.13.0 API adoption in #224).
|
||||
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
||||
.setWarning()
|
||||
// Apply the destructive-button style directly. setWarning() is
|
||||
// deprecated (1.13.0) and setDestructive() requires 1.13.0 > our
|
||||
// minAppVersion 1.6.6; 'mod-warning' is the class both apply and is
|
||||
// available on all supported versions. Full 1.13.0 adoption: #224.
|
||||
.setClass('mod-warning')
|
||||
.onClick(() => {
|
||||
new ConfirmationModal(
|
||||
this.app,
|
||||
|
|
|
|||
Loading…
Reference in a new issue