fix display error message (#293)
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
parent
4f56867d75
commit
8f2f2182f0
|
@ -59,7 +59,7 @@ export default {
|
||||||
this.useAlert.error('Something went wrong!')
|
this.useAlert.error('Something went wrong!')
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.useAlert.error(error.response.data.message)
|
this.useAlert.error(error.data.message)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,7 +145,7 @@ export default {
|
||||||
this.fetchGeneratedForm(generationId)
|
this.fetchGeneratedForm(generationId)
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.useAlert.error(error.response.data.message)
|
this.useAlert.error(error.data.message)
|
||||||
this.state = 'default'
|
this.state = 'default'
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
|
|
|
@ -83,7 +83,7 @@ export default {
|
||||||
opnFetch('/subscription/new/' + this.plan + '/' + (!this.yearly ? 'monthly' : 'yearly') + '/checkout/with-trial').then((data) => {
|
opnFetch('/subscription/new/' + this.plan + '/' + (!this.yearly ? 'monthly' : 'yearly') + '/checkout/with-trial').then((data) => {
|
||||||
window.location = data.checkout_url
|
window.location = data.checkout_url
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
useAlert().error(error.response.data.message)
|
useAlert().error(error.data.message)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.close()
|
this.close()
|
||||||
|
|
|
@ -41,7 +41,7 @@ const deleteAccount = () => {
|
||||||
// Redirect to login.
|
// Redirect to login.
|
||||||
router.push({ name: 'login' })
|
router.push({ name: 'login' })
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
useAlert().error(error.response.data.message)
|
useAlert().error(error.data.message)
|
||||||
loading = false
|
loading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ const impersonate = () => {
|
||||||
router.push({ name: 'home' })
|
router.push({ name: 'home' })
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
useAlert().error(error.response.data.message)
|
useAlert().error(error.data.message)
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ const openBillingDashboard = () => {
|
||||||
const url = data.portal_url
|
const url = data.portal_url
|
||||||
window.location = url
|
window.location = url
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
useAlert().error(error.response.data.message)
|
useAlert().error(error.data.message)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
billingLoading = false
|
billingLoading = false
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue