mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
don't use alert, #3483
This commit is contained in:
parent
291ef87c9b
commit
034098fd06
@ -8,5 +8,5 @@
|
||||
<h4>Example script</h4>
|
||||
|
||||
<pre>
|
||||
alert("Current note is " + api.getActiveContextNote().title);
|
||||
api.showMessage("Current note is " + api.getActiveContextNote().title);
|
||||
</pre>
|
||||
|
@ -1606,7 +1606,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
const resp = await server.post(`special-notes/launchers/${node.data.noteId}/${launcherType}`);
|
||||
|
||||
if (!resp.success) {
|
||||
alert(resp.message);
|
||||
toastService.showError(resp.message);
|
||||
}
|
||||
|
||||
await ws.waitForMaxKnownEntityChangeId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user