mirror of
https://github.com/pinry/pinry.git
synced 2026-03-17 17:40:37 +01:00
feature: use friendly toast mesage for ALLOW_NEW_REGISTRATIONS = False
This commit is contained in:
@@ -99,7 +99,13 @@ export default {
|
||||
self.$parent.close();
|
||||
},
|
||||
(resp) => {
|
||||
self.helper.markFieldsAsDanger(resp.data);
|
||||
if (resp.status === 401) {
|
||||
this.$buefy.toast.open(
|
||||
{ type: 'is-danger', message: 'sign up of this site closed by owner' },
|
||||
);
|
||||
} else {
|
||||
self.helper.markFieldsAsDanger(resp.data);
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user