|
@@ -0,0 +1,35 @@
|
|
|
+export function success(vue, message, caption) {
|
|
|
+ caption = (caption ? `<div style="font-size: 130%; color: black"><b>${caption}</b></div><br>` : '');
|
|
|
+ vue.$q.notify({
|
|
|
+ position: 'top-right',
|
|
|
+ color: 'positive',
|
|
|
+ textColor: 'white',
|
|
|
+ icon: 'o_check_circle',
|
|
|
+ actions: [{icon: 'o_close', color: 'black'}],
|
|
|
+ html: true,
|
|
|
+
|
|
|
+ message:
|
|
|
+ `<div style="max-width: 350px;">
|
|
|
+ ${caption}
|
|
|
+ <div style="color: black">${message}</div>
|
|
|
+ </div>`
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+export function error(vue, message, caption) {
|
|
|
+ caption = (caption ? `<div style="font-size: 130%; color: yellow"><b>${caption}</b></div><br>` : '');
|
|
|
+ vue.$q.notify({
|
|
|
+ position: 'top-right',
|
|
|
+ color: 'negative',
|
|
|
+ textColor: 'white',
|
|
|
+ icon: 'o_error_outline',
|
|
|
+ actions: [{icon: 'o_close', color: 'black'}],
|
|
|
+ html: true,
|
|
|
+
|
|
|
+ message:
|
|
|
+ `<div style="max-width: 350px;">
|
|
|
+ ${caption}
|
|
|
+ <div style="color: yellow">${message}</div>
|
|
|
+ </div>`
|
|
|
+ });
|
|
|
+}
|