Fix feed date
Fix redirect to new item
This commit is contained in:
@ -20,7 +20,7 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
||||||
<q-item-section side top>
|
<q-item-section side top>
|
||||||
<q-item-label caption>{{timeAgo(history.date)}}</q-item-label>
|
<q-item-label caption>{{timeAgo(history.date || history.created)}}</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
@ -63,7 +63,7 @@ export default {
|
|||||||
if (hoursDiff < 24) {
|
if (hoursDiff < 24) {
|
||||||
return `il y a ${hoursDiff} heure(s)`
|
return `il y a ${hoursDiff} heure(s)`
|
||||||
} else {
|
} else {
|
||||||
let daysDiff = date.getDateDiff(date2, date1)
|
let daysDiff = date.getDateDiff(date2, date1, 'days')
|
||||||
return `il y a ${daysDiff} jour(s)`
|
return `il y a ${daysDiff} jour(s)`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -224,12 +224,9 @@ export default {
|
|||||||
ok: 'Oui, STP',
|
ok: 'Oui, STP',
|
||||||
cancel: 'Osef'
|
cancel: 'Osef'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.onOk(() => {
|
||||||
this.$router.push(`/item/${newItem.ref}`)
|
this.$router.push(`/item/${newItem.ref}`)
|
||||||
})
|
})
|
||||||
.catch(() => {
|
|
||||||
// Picked "Cancel" or dismissed
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user