feat: Re-enable signup and login

This commit is contained in:
aldrin 2021-08-02 10:14:38 +02:00
parent 3ad75c2f0d
commit 74afc805dc
12 changed files with 168 additions and 87 deletions

View file

@ -3,17 +3,22 @@ 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",
});
public showError(): void {
this.showMessage("Es ist leider ein Fehler aufgetreten.", "is-danger");
}
showSuccess(message: string): void {
this.$buefy.toast.open({
message,
type: "is-success",
});
this.showMessage(message, "is-success");
}
showWarning(message: string): void {
this.showMessage(message, "is-warning");
}
private showMessage(
message: string,
type: "is-success" | "is-danger" | "is-warning"
): void {
this.$buefy.toast.open({ message, type });
}
}