20 lines
387 B
TypeScript
20 lines
387 B
TypeScript
|
import Component from "vue-class-component";
|
||
|
import Vue from "vue";
|
||
|
|
||
|
@Component
|
||
|
export class NotifyMixin extends Vue {
|
||
|
showError(): void {
|
||
|
this.$buefy.toast.open({
|
||
|
message: "Es ist leider ein Fehler aufgetreten.",
|
||
|
type: "is-danger",
|
||
|
});
|
||
|
}
|
||
|
|
||
|
showSuccess(message: string): void {
|
||
|
this.$buefy.toast.open({
|
||
|
message,
|
||
|
type: "is-success",
|
||
|
});
|
||
|
}
|
||
|
}
|