+
+
+
+
+
+
+
+
+ {{ item.item.name }}
+
+
+
+
+ {{ item.item.description }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/main.js b/frontend/src/main.js
index f5a1434d1..394fe84a3 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -21,7 +21,7 @@ new Vue({
}).$mount("#app");
// Truncate
-let filter = function (text, length, clamp) {
+let filter = function(text, length, clamp) {
clamp = clamp || "...";
let node = document.createElement("div");
node.innerHTML = text;
@@ -32,5 +32,3 @@ let filter = function (text, length, clamp) {
Vue.filter("truncate", filter);
export { router };
-
-
diff --git a/frontend/src/pages/RecipePage.vue b/frontend/src/pages/RecipePage.vue
index 460f72ec9..0e8228eee 100644
--- a/frontend/src/pages/RecipePage.vue
+++ b/frontend/src/pages/RecipePage.vue
@@ -130,7 +130,7 @@ export default {
api.recipes.delete(this.recipeDetails.slug);
},
async saveRecipe() {
- await api.recipes.update(this.recipeDetails);
+ let slug = await api.recipes.update(this.recipeDetails);
if (this.fileObject) {
await api.recipes.updateImage(this.recipeDetails.slug, this.fileObject);
@@ -138,6 +138,7 @@ export default {
this.form = false;
this.imageKey += 1;
+ this.$router.push(`/recipe/${slug}`);
},
showForm() {
this.form = true;
diff --git a/frontend/src/pages/SearchPage.vue b/frontend/src/pages/SearchPage.vue
new file mode 100644
index 000000000..022610b02
--- /dev/null
+++ b/frontend/src/pages/SearchPage.vue
@@ -0,0 +1,58 @@
+