mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	feature/recipe-patch-improvements (#382)
* automated docs update * recipe rating component * recipe partial updates - closes #25 * use Vue.delete to update store * format * arrow functions * fix tests * format * initial context menu * localize * add confirmation dialog * context menu * fix bare exception * update line length * format all file with prettier * update changelog * download as json * update python dependencies * update javascript dependencies Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
		| @@ -1,6 +1,5 @@ | ||||
| <template> | ||||
|   <v-container> | ||||
|      | ||||
|     <CardSection | ||||
|       v-if="siteSettings.showRecent" | ||||
|       :title="$t('page.recent')" | ||||
| @@ -38,8 +37,8 @@ export default { | ||||
|       return this.$store.getters.getSiteSettings; | ||||
|     }, | ||||
|     recentRecipes() { | ||||
|       console.log("Recent Recipes"); | ||||
|       return this.$store.getters.getRecentRecipes; | ||||
|   | ||||
|     }, | ||||
|   }, | ||||
|   async mounted() { | ||||
| @@ -62,18 +61,13 @@ export default { | ||||
|       this.$store.dispatch("requestRecentRecipes"); | ||||
|     }, | ||||
|     sortAZ(index) { | ||||
|       this.recipeByCategory[index].recipes.sort((a, b) => | ||||
|         a.name > b.name ? 1 : -1 | ||||
|       ); | ||||
|       this.recipeByCategory[index].recipes.sort((a, b) => (a.name > b.name ? 1 : -1)); | ||||
|     }, | ||||
|     sortRecent(index) { | ||||
|       this.recipeByCategory[index].recipes.sort((a, b) => | ||||
|         a.dateAdded > b.dateAdded ? -1 : 1 | ||||
|       ); | ||||
|       this.recipeByCategory[index].recipes.sort((a, b) => (a.dateAdded > b.dateAdded ? -1 : 1)); | ||||
|     }, | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
|  | ||||
| <style> | ||||
| </style> | ||||
| <style></style> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user