1
0

Add a button to copy an attachment url from the attachment overview

This commit is contained in:
kolaente
2021-07-07 22:13:21 +02:00
parent ac6082a670
commit b6bc410346
4 changed files with 24 additions and 5 deletions

View File

@ -1,5 +1,6 @@
import AttachmentModel from '../../../models/attachment'
import AttachmentService from '../../../services/attachment'
import {generateAttachmentUrl} from '@/helpers/generateAttachmentUrl'
export default {
methods: {
@ -21,7 +22,7 @@ export default {
taskId: this.taskId,
attachment: a,
})
onSuccess(`${window.API_URL}/tasks/${this.taskId}/attachments/${a.id}`)
onSuccess(generateAttachmentUrl(this.taskId, a.id))
})
}
if (r.errors !== null) {