feature: use friendly toast mesage for ALLOW_NEW_REGISTRATIONS = False

This commit is contained in:
winkidney
2022-04-22 22:10:08 -07:00
parent c6d4fb9270
commit a2a804014c

View File

@@ -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);
}
},
);
},