refactoring

This commit is contained in:
Čarodej
2022-05-18 08:51:28 +02:00
parent e87e2ec4e3
commit 3c28da2613
5 changed files with 5 additions and 6 deletions

View File

@@ -58,11 +58,11 @@
"/chunks/sign-up.js": "/chunks/sign-up.js?id=2af6073efe54c560", "/chunks/sign-up.js": "/chunks/sign-up.js?id=2af6073efe54c560",
"/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=ff8954243e86c1e1", "/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=ff8954243e86c1e1",
"/chunks/create-new-password.js": "/chunks/create-new-password.js?id=2f0401ee2fc148c4", "/chunks/create-new-password.js": "/chunks/create-new-password.js?id=2f0401ee2fc148c4",
"/chunks/settings.js": "/chunks/settings.js?id=22509bd0c45c0159", "/chunks/settings.js": "/chunks/settings.js?id=ff0f6e88171fd094",
"/chunks/profile.js": "/chunks/profile.js?id=3e24bb5e1f52d4bb", "/chunks/profile.js": "/chunks/profile.js?id=3e24bb5e1f52d4bb",
"/chunks/settings-password.js": "/chunks/settings-password.js?id=d00bf503d8126dc4", "/chunks/settings-password.js": "/chunks/settings-password.js?id=d00bf503d8126dc4",
"/chunks/settings-storage.js": "/chunks/settings-storage.js?id=ecfee7f7e98204f8", "/chunks/settings-storage.js": "/chunks/settings-storage.js?id=ecfee7f7e98204f8",
"/chunks/billing.js": "/chunks/billing.js?id=dd217d680baafb84", "/chunks/billing.js": "/chunks/billing.js?id=91502cb0a5806200",
"/chunks/platform.js": "/chunks/platform.js?id=90d43ec56b62c721", "/chunks/platform.js": "/chunks/platform.js?id=90d43ec56b62c721",
"/chunks/files.js": "/chunks/files.js?id=5f29f35c280e680b", "/chunks/files.js": "/chunks/files.js?id=5f29f35c280e680b",
"/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=6f43aea38e0927bc", "/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=6f43aea38e0927bc",

View File

@@ -139,7 +139,7 @@ export default {
planCode: this.selectedPlan.data.meta.driver_plan_id.stripe, planCode: this.selectedPlan.data.meta.driver_plan_id.stripe,
}) })
.then((response) => { .then((response) => {
window.location = response.data.url window.location = response.data.data.url
}) })
.catch((error) => { .catch((error) => {
if (error.response.status === 500 && error.response.data.type) { if (error.response.status === 500 && error.response.data.type) {

View File

@@ -256,7 +256,7 @@ export default {
planCode: this.selectedPlan.data.meta.driver_plan_id.stripe, planCode: this.selectedPlan.data.meta.driver_plan_id.stripe,
}) })
.then((response) => { .then((response) => {
window.location = response.data.url window.location = response.data.data.url
}) })
.catch((error) => { .catch((error) => {
this.$closePopup() this.$closePopup()

View File

@@ -171,7 +171,7 @@ export default {
.then((response) => { .then((response) => {
// Set up Stripe.js and Elements to use in checkout form, passing the client secret obtained in step 2 // Set up Stripe.js and Elements to use in checkout form, passing the client secret obtained in step 2
elements = stripe.elements({ elements = stripe.elements({
clientSecret: response.data.client_secret, clientSecret: response.data.data.client_secret,
appearance: { appearance: {
theme: 'stripe', theme: 'stripe',
variables: { variables: {

View File

@@ -11,7 +11,6 @@
<RemoteUploadPopup /> <RemoteUploadPopup />
<ConfirmPopup /> <ConfirmPopup />
<ConfirmPassword /> <ConfirmPassword />
<!--2FA popups--> <!--2FA popups-->