mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-19 05:09:40 +02:00
feat: Use Backend for Recipe Post Actions (#4163)
This commit is contained in:
parent
8bd26d2230
commit
d8dbcac196
10 changed files with 159 additions and 25 deletions
|
@ -376,7 +376,7 @@ export default defineComponent({
|
|||
const response = await groupRecipeActionsStore.execute(action, props.recipe);
|
||||
|
||||
if (action.actionType === "post") {
|
||||
if (!response || (response.status >= 200 && response.status < 300)) {
|
||||
if (!response?.error) {
|
||||
alert.success(i18n.tc("events.message-sent"));
|
||||
} else {
|
||||
alert.error(i18n.tc("events.something-went-wrong"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue