29 lines
570 B
JavaScript
29 lines
570 B
JavaScript
export const confirmObject = (message, title) => ({
|
|
title: title || "Opravdu?",
|
|
message: message || "",
|
|
cancel: true,
|
|
persistent: true
|
|
});
|
|
|
|
export const successObject = (message) => ({
|
|
message,
|
|
position: "top",
|
|
color: "positive",
|
|
progress: true,
|
|
});
|
|
|
|
export const warningObject = (message) => ({
|
|
message,
|
|
position: "top",
|
|
color: "warning",
|
|
});
|
|
|
|
|
|
export const errorObject = (message) => ({
|
|
message,
|
|
position: "top",
|
|
color: "negative",
|
|
timeout: 5 * 60 * 1000,
|
|
actions: [{ icon: 'close', color: 'white', round: true, handler: () => { }}]
|
|
})
|