mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 17:02:16 +00:00
- admin registration fixes
- alert popup refactoring
This commit is contained in:
@@ -88,6 +88,14 @@ export default {
|
||||
_method: 'delete',
|
||||
})
|
||||
.then(() => {
|
||||
// If metered subscription, then set isEmptyPlans to true
|
||||
if (this.$store.getters.config.subscriptionType === 'metered') {
|
||||
this.$store.commit('REPLACE_CONFIG_VALUE', {
|
||||
key: 'isEmptyPlans',
|
||||
value: true,
|
||||
})
|
||||
}
|
||||
|
||||
events.$emit('toaster', {
|
||||
type: 'success',
|
||||
message: this.$t('popup_deleted_plan.title'),
|
||||
|
||||
@@ -201,7 +201,13 @@ export default {
|
||||
})
|
||||
.catch((error) => {
|
||||
// Validation errors
|
||||
if (error.response.status == 422) {
|
||||
if (error.response.status === 409) {
|
||||
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.message,
|
||||
})
|
||||
|
||||
} else if (error.response.status === 422) {
|
||||
// Email validation error
|
||||
if (error.response.data.errors['email']) {
|
||||
this.$refs.createUser.setErrors({
|
||||
|
||||
Reference in New Issue
Block a user