diff --git a/.gitignore b/.gitignore index 7fc2d4d477fe..34ea61503ad6 100644 --- a/.gitignore +++ b/.gitignore @@ -55,6 +55,7 @@ eggs/ lib/ lib64/ parts/ +!frontend/src/components/Recipe/Parts/ sdist/ var/ wheels/ diff --git a/frontend/src/components/Recipe/Parts/Helpers/ImageUploadBtn.vue b/frontend/src/components/Recipe/Parts/Helpers/ImageUploadBtn.vue index 83bd7ac6c02c..cf92ddd3b7ae 100644 --- a/frontend/src/components/Recipe/Parts/Helpers/ImageUploadBtn.vue +++ b/frontend/src/components/Recipe/Parts/Helpers/ImageUploadBtn.vue @@ -25,9 +25,9 @@
- + @@ -66,6 +66,9 @@ export default { } this.loading = false; }, + getMessages() { + return this.slug ? [""] : [this.$i18n.t("recipe.save-recipe-before-use")]; + }, }, }; diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index 987748e67586..b14464065a6a 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -260,6 +260,7 @@ "recipe-updated": "Recipe updated", "remove-from-favorites": "Remove from Favorites", "remove-section": "Remove Section", + "save-recipe-before-use": "Save recipe before use", "section-title": "Section Title", "servings": "Servings", "share-recipe-message": "I wanted to share my {0} recipe with you.",