-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0188983
commit 3c45de5
Showing
5 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { App, Modal } from 'obsidian'; | ||
|
||
export class DisabledFormulasModal extends Modal { | ||
constructor(app: App) { | ||
super(app); | ||
} | ||
|
||
onOpen() { | ||
let { contentEl } = this; | ||
const header = document.createElement('h2'); | ||
header.appendText('Table formulas temporarily disabled'); | ||
contentEl.appendChild(header); | ||
|
||
const body = document.createElement('p'); | ||
body.appendText( | ||
'I have discovered changes which will dramatically simplify how formulas ' + | ||
'function, but implementing them will take some time. In the mean time, ' + | ||
'I am disabling functions to prevent people from writing the old format. ' + | ||
'Sorry for the inconvenience!', | ||
); | ||
contentEl.appendChild(body); | ||
|
||
const end = document.createElement('p'); | ||
end.appendText( | ||
'I look forward to showing you the new, simplified format 🙂', | ||
); | ||
contentEl.appendChild(end); | ||
} | ||
|
||
onClose() { | ||
let { contentEl } = this; | ||
contentEl.empty(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters