forked from vikunja/vikunja
Making changes as per suggestion at vikunja/vikunja#2442 (comment)
This commit is contained in:
parent
79dfa36cf7
commit
ba672a117e
@ -253,6 +253,8 @@ const actions = computed(() => {
|
||||
])))
|
||||
})
|
||||
|
||||
const frontendUrl = computed(() => configStore.frontendUrl)
|
||||
|
||||
async function attachmentUpload(files: File[] | FileList): (Promise<string[]>) {
|
||||
|
||||
const uploadPromises: Promise<string>[] = []
|
||||
@ -377,7 +379,7 @@ async function deleteComment(commentToDelete: ITaskComment) {
|
||||
}
|
||||
|
||||
function getCommentUrl(commentId: string) {
|
||||
return `${location.origin}${location.pathname}${location.search}#comment-${commentId}`
|
||||
return `${frontendUrl.value}${location.pathname}${location.search}#comment-${commentId}`
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user