mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
automatically open ingredient editor in new tab
This commit is contained in:
@@ -186,10 +186,10 @@ export default {
|
|||||||
case "ingredient-editor": {
|
case "ingredient-editor": {
|
||||||
let url = resolveDjangoUrl("view_ingredient_editor")
|
let url = resolveDjangoUrl("view_ingredient_editor")
|
||||||
if (this.this_model === this.Models.FOOD) {
|
if (this.this_model === this.Models.FOOD) {
|
||||||
window.location.href = url + '?food_id=' + e.source.id
|
window.open(url + '?food_id=' + e.source.id, "_blank");
|
||||||
}
|
}
|
||||||
if (this.this_model === this.Models.UNIT) {
|
if (this.this_model === this.Models.UNIT) {
|
||||||
window.location.href = url + '?unit_id=' + e.source.id
|
window.open(url + '?unit_id=' + e.source.id, "_blank");
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user