@@ -1,4 +1,4 @@
|
||||
import DialogComponent from "@/components/core/Dialog.vue";
|
||||
import DialogComponent from "@/components/core/CustomDialog.vue";
|
||||
import { App } from "vue";
|
||||
|
||||
export class Dialog {
|
||||
|
||||
@@ -8,22 +8,22 @@ export class Notifier {
|
||||
}
|
||||
|
||||
success(message: string): void {
|
||||
this.notification(message, "is-success");
|
||||
this.notification(message, "success");
|
||||
}
|
||||
|
||||
error(message: string): void {
|
||||
this.notification(message, "is-danger");
|
||||
this.notification(message, "danger");
|
||||
}
|
||||
|
||||
info(message: string): void {
|
||||
this.notification(message, "is-info");
|
||||
this.notification(message, "info");
|
||||
}
|
||||
|
||||
private notification(message: string, type: string) {
|
||||
this.app.config.globalProperties.$oruga.notification.open({
|
||||
message,
|
||||
duration: 5000,
|
||||
position: "is-bottom-right",
|
||||
position: "bottom-right",
|
||||
type,
|
||||
hasIcon: true,
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import SnackbarComponent from "@/components/core/Snackbar.vue";
|
||||
import SnackbarComponent from "@/components/core/CustomSnackbar.vue";
|
||||
import { App } from "vue";
|
||||
|
||||
export class Snackbar {
|
||||
@@ -10,8 +10,6 @@ export class Snackbar {
|
||||
|
||||
open({
|
||||
message,
|
||||
queue,
|
||||
indefinite,
|
||||
variant,
|
||||
position,
|
||||
actionText,
|
||||
|
||||
Reference in New Issue
Block a user