mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
- stripe redirection into checkout fix
- show Websocket connection test only when broadcasting is set
This commit is contained in:
@@ -139,17 +139,13 @@ export default {
|
||||
planCode: this.selectedPlan.data.meta.driver_plan_id.stripe,
|
||||
})
|
||||
.then((response) => {
|
||||
window.location = response.data.data.url
|
||||
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()
|
||||
}
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.title || this.$t('popup_error.title'),
|
||||
message: error.response.data.message || this.$t('popup_error.message'),
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -256,23 +256,16 @@ export default {
|
||||
planCode: this.selectedPlan.data.meta.driver_plan_id.stripe,
|
||||
})
|
||||
.then((response) => {
|
||||
window.location = response.data.data.url
|
||||
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'),
|
||||
})
|
||||
}
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.title || this.$t('popup_error.title'),
|
||||
message: error.response.data.message || this.$t('popup_error.message'),
|
||||
})
|
||||
}, 100)
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
|
||||
<!--Broadcasting-->
|
||||
<div class="card shadow-card">
|
||||
<div v-if="config.broadcasting" class="card shadow-card">
|
||||
<FormLabel icon="info">Broadcasting</FormLabel>
|
||||
|
||||
<div class="lg:flex lg:space-y-0 space-y-3 items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user