mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 21:58:54 -05:00
improve cross instance import
This commit is contained in:
@@ -629,6 +629,7 @@ export default {
|
|||||||
return axios.post(resolveDjangoUrl('api_recipe_from_source'), payload,).then((response) => {
|
return axios.post(resolveDjangoUrl('api_recipe_from_source'), payload,).then((response) => {
|
||||||
if (response.status === 201 && 'link' in response.data) {
|
if (response.status === 201 && 'link' in response.data) {
|
||||||
window.location = response.data.link
|
window.location = response.data.link
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user