- {% else %}
-
- {% if '.pdf' in recipe.file_path %}
-
-
-
- {% endif %}
- {% if '.jpg' in recipe.file_path or '.png' in recipe.file_path or '.jpeg' in recipe.file_path %}
-
-
-
- {% endif %}
-
-
-
-
-
{% trans 'External recipe' %}
-
- {% blocktrans %}
- This is an external recipe, which means you can only view it by opening the link
- above.
- You can convert this recipe to a fancy recipe by pressing the convert button. The
- original
- file
- will still be accessible.
- {% endblocktrans %}.
-
-
- {% trans 'Convert now!' %}
- {% trans 'View external recipe' %}
-
-
-
-
-
-
- {% endif %}
-
- {% endif %}
-
{% if request.user.userpreference.comments %}
@@ -149,6 +153,7 @@ import Nutrition from "@/components/Nutrition";
import moment from 'moment'
import Keywords from "@/components/Keywords";
+import LoadingSpinner from "@/components/LoadingSpinner";
Vue.prototype.moment = moment
@@ -168,6 +173,7 @@ export default {
RecipeContextMenu,
Nutrition,
Keywords,
+ LoadingSpinner,
},
data() {
return {
@@ -191,7 +197,7 @@ export default {
this.ingredient_count += step.ingredients.length
for (let ingredient of step.ingredients) {
- this.$set(ingredient, 'checked', false)
+ this.$set(ingredient, 'checked', false)
}
step.time_offset = total_time
diff --git a/vue/src/components/LoadingSpinner.vue b/vue/src/components/LoadingSpinner.vue
new file mode 100644
index 000000000..968c55773
--- /dev/null
+++ b/vue/src/components/LoadingSpinner.vue
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
diff --git a/vue/webpack-stats.json b/vue/webpack-stats.json
index b0b8976d5..5b35adb19 100644
--- a/vue/webpack-stats.json
+++ b/vue/webpack-stats.json
@@ -1 +1 @@
-{"status":"done","publicPath":"http://localhost:8080/","chunks":{"chunk-vendors":[{"name":"js/chunk-vendors.js","publicPath":"http://localhost:8080/js/chunk-vendors.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\chunk-vendors.js"}],"recipe_view":[{"name":"js/recipe_view.js","publicPath":"http://localhost:8080/js/recipe_view.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\recipe_view.js"},{"name":"recipe_view.6a32bc3201ad26dbc898.hot-update.js","publicPath":"http://localhost:8080/recipe_view.6a32bc3201ad26dbc898.hot-update.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\recipe_view.6a32bc3201ad26dbc898.hot-update.js"}]},"error":"ModuleError","message":"Module Error (from ./node_modules/eslint-loader/index.js):\n\nF:\\Developement\\Django\\recipes\\vue\\src\\components\\Keywords.vue\n 3:7 error Elements in iteration expect to have 'v-bind:key' directives vue/require-v-for-key\n\n✖ 1 problem (1 error, 0 warnings)\n"}
\ No newline at end of file
+{"status":"done","publicPath":"http://localhost:8080/","chunks":{"chunk-vendors":[{"name":"js/chunk-vendors.js","publicPath":"http://localhost:8080/js/chunk-vendors.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\chunk-vendors.js"}],"recipe_view":[{"name":"js/recipe_view.js","publicPath":"http://localhost:8080/js/recipe_view.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\recipe_view.js"},{"name":"recipe_view.cfc8fcd2004c1b08df3e.hot-update.js","publicPath":"http://localhost:8080/recipe_view.cfc8fcd2004c1b08df3e.hot-update.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\recipe_view.cfc8fcd2004c1b08df3e.hot-update.js"}]},"error":"ModuleError","message":"Module Error (from ./node_modules/eslint-loader/index.js):\n\nF:\\Developement\\Django\\recipes\\vue\\src\\components\\Keywords.vue\n 3:7 error Elements in iteration expect to have 'v-bind:key' directives vue/require-v-for-key\n\n✖ 1 problem (1 error, 0 warnings)\n"}
\ No newline at end of file