Merge pull request #3685 from q-wertz/master

Fix wording to represent the code behavior
This commit is contained in:
Julius Härtl
2022-04-08 15:49:13 +02:00
committed by GitHub

View File

@@ -53,8 +53,8 @@
</div> </div>
<div class="dashboard-column"> <div class="dashboard-column">
<h3>{{ t('deck', 'This week') }}</h3> <h3>{{ t('deck', 'Next 7 days') }}</h3>
<div v-for="card in cardsByDueDate.thisWeek" :key="card.id"> <div v-for="card in cardsByDueDate.nextSevenDays" :key="card.id">
<CardItem :id="card.id" /> <CardItem :id="card.id" />
</div> </div>
</div> </div>
@@ -160,7 +160,7 @@ export default {
overdue: [], overdue: [],
today: [], today: [],
tomorrow: [], tomorrow: [],
thisWeek: [], nextSevenDays: [],
later: [], later: [],
} }
dataset.forEach(card => { dataset.forEach(card => {
@@ -180,7 +180,7 @@ export default {
all.tomorrow.push(card) all.tomorrow.push(card)
} }
if (hours >= (48 - currentHour) && hours < (24 * 7)) { if (hours >= (48 - currentHour) && hours < (24 * 7)) {
all.thisWeek.push(card) all.nextSevenDays.push(card)
} }
if (hours >= (24 * 7)) { if (hours >= (24 * 7)) {
all.later.push(card) all.later.push(card)