Skip to content

Commit

Permalink
Merge pull request #118 from erikzimmermann/feat/weekday
Browse files Browse the repository at this point in the history
close #117 ✨ add weekdays
  • Loading branch information
martenjostmann authored Dec 8, 2022
2 parents 5a6a6b7 + e7a7337 commit dc25d9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ div
v-row
v-col(v-for='(item, index) in props.items' :key="index" cols='12' sm='6' md='6' lg='4')
v-card(height="100%")
v-card-title.align-center {{ item.date }}
v-card-title.align-center {{ days[(new Date(item.date)).getDay()] }}
v-img(v-show="item.dish.url != null" :alt="item.dish.name" height='250'
:src="item.dish.url")
v-card.center-items.light-green.lighten-2.rounded-b-0(v-show="item.dish.url == null" height='250' elevation="0")
Expand Down Expand Up @@ -58,6 +58,7 @@ export default {
return {
recommendationItems: this.$store.state.recommendations,
recommendationItemsDaily: this.$store.state.dailyRecommendations,
days: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']
};
},
computed: {
Expand Down

0 comments on commit dc25d9c

Please sign in to comment.