Add user to attachments list
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-03-04 20:35:00 +01:00
parent 2104d1ea4b
commit 2b5888805f
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@
<th>Size</th>
<th>Type</th>
<th>Date</th>
<th>Created By</th>
<th>Action</th>
</tr>
<tr class="attachment" v-for="a in attachments" :key="a.id">
@ -32,6 +33,7 @@
<td>{{ a.file.getHumanSize() }}</td>
<td>{{ a.file.mime }}</td>
<td v-tooltip="formatDate(a.created)">{{ formatDateSince(a.created) }}</td>
<td><user :user="a.created_by" :avatar-size="30"/></td>
<td>
<div class="buttons has-addons">
<a class="button is-primary noshadow" @click="downloadAttachment(a)" v-tooltip="'Download this attachment'">
@ -76,9 +78,13 @@
<script>
import AttachmentService from '../../../services/attachment'
import AttachmentModel from '../../../models/attachment'
import User from '../../global/user'
export default {
name: 'attachments',
components: {
User,
},
data() {
return {
attachments: [],