Skip to content

Commit

Permalink
software catalog issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsej108 committed Oct 14, 2024
1 parent 3bba452 commit 5accf9e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div :id="'accordion_' + catalog.catalogIdx" class="accordion-collapse collapse" :style= "[catalog.isShow ? {display: 'block'} : {display:'none'}]">
<div class="accordion-body pt-0">
<br />
{{ catalog.catalogDescription }}
<div style="white-space: pre-wrap;" v-html="formattedText(catalog.catalogDescription)"></div>
<div>
<br />
<div class="btn-list" style="width:70%;" v-for="wf in catalog.refData.workflow" :key="wf.catalogRefIdx">
Expand Down Expand Up @@ -384,6 +384,10 @@
const onClickDeploy = (value: string) => {
modalTite.value = value
}
const formattedText = (text:string) => {
return text.replace(/\\n|\n/g, '<br/>');
}
</script>
Expand Down

0 comments on commit 5accf9e

Please sign in to comment.