mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(toast): get rid of redundant titles
This commit is contained in:
parent
1cf29c985e
commit
d351fd506a
@ -1,4 +1,3 @@
|
|||||||
import ws from "./ws.js";
|
|
||||||
import utils from "./utils.js";
|
import utils from "./utils.js";
|
||||||
|
|
||||||
export interface ToastOptions {
|
export interface ToastOptions {
|
||||||
@ -82,7 +81,6 @@ function showMessage(message: string, delay = 2000) {
|
|||||||
console.debug(utils.now(), "message:", message);
|
console.debug(utils.now(), "message:", message);
|
||||||
|
|
||||||
toast({
|
toast({
|
||||||
title: "Info",
|
|
||||||
icon: "check",
|
icon: "check",
|
||||||
message: message,
|
message: message,
|
||||||
autohide: true,
|
autohide: true,
|
||||||
@ -94,7 +92,6 @@ export function showError(message: string, delay = 10000) {
|
|||||||
console.log(utils.now(), "error: ", message);
|
console.log(utils.now(), "error: ", message);
|
||||||
|
|
||||||
toast({
|
toast({
|
||||||
title: "Error",
|
|
||||||
icon: "alert",
|
icon: "alert",
|
||||||
message: message,
|
message: message,
|
||||||
autohide: true,
|
autohide: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user