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,6 +4,11 @@
|
||||
<section v-html="description" class="description-detail px-2 py-2 w-100 rounded mt-2" />
|
||||
</div>
|
||||
|
||||
<div v-if="hasMasterTaskDescLinks" class="px-5">
|
||||
<p class="py-3">Odkazy na server</p>
|
||||
<p class="server-links" v-html="masterTaskDescLinks" />
|
||||
</div>
|
||||
|
||||
<div class="px-5 py-5 border-bottom" v-if="inheritedDescription">
|
||||
<p>Popis mastertasku</p>
|
||||
<section v-html="inheritedDescription" class="description-detail px-2 py-2 w-100 rounded mt-2" />
|
||||
@@ -11,6 +16,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getServerLinks } from '@/plugins/tm@_utils/server-links.utils'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
description: {
|
||||
@@ -22,6 +29,16 @@ export default {
|
||||
type: String || null,
|
||||
default: () => null
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
masterTaskDescLinks() {
|
||||
return getServerLinks(this.description)
|
||||
},
|
||||
|
||||
hasMasterTaskDescLinks() {
|
||||
return this.masterTaskDescLinks.trim().length > 0
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user