mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[getServerLinks] added utils, links in task view
This commit is contained in:
1 parent
f3d3aa916e
commit
c74f875571
5 files changed
+110
-2
No files matched your search
@@ -4,13 +4,25 @@
|
||||
<section v-html="description" class="description-detail px-2 py-2 w-100 rounded mt-2" />
|
||||
</div>
|
||||
|
||||
<div v-if="hasSubtaskDescLinks" class="px-5">
|
||||
<p class="py-3">Odkazy na server</p>
|
||||
<p class="server-links" v-html="subtaskDescLinks" />
|
||||
</div>
|
||||
|
||||
<div class="px-5 py-5 border-bottom" v-if="mastertaskDescription">
|
||||
<p>Popis mastertasku</p>
|
||||
<section v-html="mastertaskDescription" class="description-detail px-2 py-2 w-100 rounded mt-2" />
|
||||
</div>
|
||||
|
||||
<div v-if="hasSubtaskMTDescLinks" class="px-5">
|
||||
<p class="py-3">Odkazy na server</p>
|
||||
<p class="server-links" v-html="subtaskMTDecsLinks" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getServerLinks } from '@/plugins/tm@_utils/server-links.utils'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
description: {
|
||||
@@ -22,6 +34,24 @@ export default {
|
||||
type: String || null,
|
||||
default: () => null
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
subtaskDescLinks() {
|
||||
return getServerLinks(this.description)
|
||||
},
|
||||
|
||||
subtaskMTDecsLinks() {
|
||||
return getServerLinks(this.mastertaskDescription)
|
||||
},
|
||||
|
||||
hasSubtaskDescLinks() {
|
||||
return this.subtaskDescLinks.trim().length > 0
|
||||
},
|
||||
|
||||
hasSubtaskMTDescLinks() {
|
||||
return this.subtaskMTDecsLinks.trim().length > 0
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
Reference in new issue
Block a user