mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
remove all alert() usages, fixes #3086
This commit is contained in:
@@ -4,6 +4,7 @@ import dateNoteService from "../../services/date_notes.js";
|
||||
import server from "../../services/server.js";
|
||||
import appContext from "../../services/app_context.js";
|
||||
import RightDropdownButtonWidget from "./right_dropdown_button.js";
|
||||
import toastService from "../../services/toast.js";
|
||||
|
||||
const DROPDOWN_TPL = `
|
||||
<div class="calendar-dropdown-widget">
|
||||
@@ -62,7 +63,7 @@ export default class CalendarWidget extends RightDropdownButtonWidget {
|
||||
this.hideDropdown();
|
||||
}
|
||||
else {
|
||||
alert("Cannot find day note");
|
||||
toastService.showError("Cannot find day note");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user