Add toast to block staff nokp register

This commit is contained in:
Amir
2022-12-14 07:08:12 +08:00
parent 40479ccd36
commit fbd786c506
@@ -370,6 +370,14 @@ export default {
detail: val[0],
})
);
} else if (response.data.success == "Staff") {
this.isLoading = false;
this.isDisplayTNC = false;
this.$toast.add({
severity: "warn",
summary: "Failed to register!",
detail: response.data.message,
});
} else {
this.isLoading = false;
alert(response);