Add recap page
This commit is contained in:
@ -230,7 +230,7 @@
|
||||
<span>{{ getDate(selectedHistory.created) }}</span>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-card-section>
|
||||
<q-card-section v-if="selectedHistory.type === 'issue' && !selectedHistory.solved_at">
|
||||
<q-btn outline color="secondary" label="Marquer comme terminé" @click="setTaskDone(selectedHistory)"></q-btn>
|
||||
</q-card-section>
|
||||
<q-separator/>
|
||||
@ -391,10 +391,16 @@ export default {
|
||||
collection: 'history',
|
||||
itemId: history.id,
|
||||
data: {
|
||||
...history,
|
||||
id: history.id,
|
||||
solved_at: new Date().toISOString(),
|
||||
solved_by: this.username
|
||||
}
|
||||
}).then(_ => {
|
||||
this.$store.dispatch('core/loadAppData').then(_ => {
|
||||
this.loadItem()
|
||||
this.showHistory = false
|
||||
this.selectedHistory = null
|
||||
})
|
||||
})
|
||||
},
|
||||
async uploadFile (file) {
|
||||
|
||||
Reference in New Issue
Block a user