mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 06:20:21 +00:00
45 lines
1016 B
Vue
45 lines
1016 B
Vue
<template>
|
|
<div class="px-5 py-5 border-bottom" v-if="description" >
|
|
<p>Popis zadania</p>
|
|
<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" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getServerLinks } from '@/plugins/tm@_utils/server-links.utils'
|
|
|
|
export default {
|
|
props: {
|
|
description: {
|
|
type: String || null,
|
|
default: () => null
|
|
},
|
|
|
|
inheritedDescription: {
|
|
type: String || null,
|
|
default: () => null
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
masterTaskDescLinks() {
|
|
return getServerLinks(this.description)
|
|
},
|
|
|
|
hasMasterTaskDescLinks() {
|
|
return this.masterTaskDescLinks.trim().length > 0
|
|
}
|
|
}
|
|
}
|
|
</script>
|