|
1 | 1 | <template> |
2 | 2 | <div id="app-dashboard"> |
3 | | - <h2>{{ greeting.icon }} {{ greeting.text }}, {{ name }}</h2> |
| 3 | + <h2>{{ greeting.icon }} {{ greeting.text }}</h2> |
4 | 4 |
|
5 | 5 | <div class="panels"> |
6 | 6 | <div v-for="panel in panels" :key="panel.id" class="panel"> |
@@ -37,18 +37,18 @@ export default { |
37 | 37 | const time = this.timer.getHours() |
38 | 38 |
|
39 | 39 | if (time > 18) { |
40 | | - return { icon: '🌙', text: t('dashboard', 'Good evening') } |
| 40 | + return { icon: '🌙', text: t('dashboard', 'Good evening, {name}', { name: this.name }) } |
41 | 41 | } |
42 | 42 | if (time > 12) { |
43 | | - return { icon: '☀', text: t('dashboard', 'Good afternoon') } |
| 43 | + return { icon: '☀', text: t('dashboard', 'Good afternoon, {name}', { name: this.name }) } |
44 | 44 | } |
45 | 45 | if (time === 12) { |
46 | | - return { icon: '🍽', text: t('dashboard', 'Time for lunch') } |
| 46 | + return { icon: '🍽', text: t('dashboard', 'Time for lunch, {name}', { name: this.name }) } |
47 | 47 | } |
48 | 48 | if (time > 5) { |
49 | | - return { icon: '🌄', text: t('dashboard', 'Good morning') } |
| 49 | + return { icon: '🌄', text: t('dashboard', 'Good morning, {name}', { name: this.name }) } |
50 | 50 | } |
51 | | - return { icon: '🦉', text: t('dashboard', 'Have a night owl') } |
| 51 | + return { icon: '🦉', text: t('dashboard', 'Have a night owl, {name}', { name: this.name }) } |
52 | 52 | }, |
53 | 53 | }, |
54 | 54 | watch: { |
|
0 commit comments