fix: Show permission error ,when food creation fails (#8370)
Co-authored-by: jl1204 <jl1204@students.waikato.ac.nz>
This commit is contained in:
1 parent
843b9fa075
commit
737ca3a9ff
2 files changed
+4
-3
No files matched your search
@@ -286,7 +286,7 @@ export function useParseIngredientsDialog(
|
||||
}
|
||||
|
||||
if (!newUnit) {
|
||||
alert.error(i18n.t("events.something-went-wrong"));
|
||||
alert.error(i18n.t("general.cant-create-permission"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ export function useParseIngredientsDialog(
|
||||
}
|
||||
|
||||
if (!newFood) {
|
||||
alert.error(i18n.t("events.something-went-wrong"));
|
||||
alert.error(i18n.t("general.cant-create-permission"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -176,7 +176,8 @@
|
||||
"date-created": "Date Created",
|
||||
"date-updated": "Date Updated",
|
||||
"key": "Key",
|
||||
"value": "Value"
|
||||
"value": "Value",
|
||||
"cant-create-permission": "Can't create. Please contact your administrator to get permission."
|
||||
},
|
||||
"group": {
|
||||
"create-group": "Create Group",
|
||||
|
||||
Reference in new issue
Block a user