mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
- Added status column to the fixed plan table
- Ability to delete fixed plan if there isn't any subscribed user - Improved error handling in subscription module
This commit is contained in:
@@ -141,6 +141,16 @@ export default {
|
||||
.then((response) => {
|
||||
window.location = response.data.url
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.response.status === 500 && error.response.data.type) {
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.title,
|
||||
message: error.response.data.message,
|
||||
})
|
||||
} else {
|
||||
this.$isSomethingWrong()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Change active subscription
|
||||
|
||||
@@ -134,6 +134,7 @@ import Spinner from '../FilesView/Spinner'
|
||||
import InfoBox from '../Others/Forms/InfoBox'
|
||||
import PlanPeriodSwitcher from './PlanPeriodSwitcher'
|
||||
|
||||
|
||||
export default {
|
||||
name: 'SubscribeAccountPopup',
|
||||
components: {
|
||||
@@ -257,6 +258,26 @@ export default {
|
||||
.then((response) => {
|
||||
window.location = response.data.url
|
||||
})
|
||||
.catch((error) => {
|
||||
this.$closePopup()
|
||||
|
||||
setTimeout(() => {
|
||||
if (error.response.status === 500 && error.response.data.type) {
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.title,
|
||||
message: error.response.data.message,
|
||||
})
|
||||
} else {
|
||||
events.$emit('alert:open', {
|
||||
title: this.$t('popup_error.title'),
|
||||
message: this.$t('popup_error.message'),
|
||||
})
|
||||
}
|
||||
}, 100)
|
||||
})
|
||||
.finally(() => {
|
||||
this.stripe.isGettingCheckoutLink = false
|
||||
})
|
||||
},
|
||||
selectPlan(plan) {
|
||||
this.selectedPlan = plan
|
||||
|
||||
Reference in New Issue
Block a user