Add toast to block staff nokp register
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user