Skip to content

Commit

Permalink
both diagram description and icon in threat model view
Browse files Browse the repository at this point in the history
  • Loading branch information
jgadsden authored Jan 20, 2025
2 parents 26db3bf + 51da8eb commit 404bbde
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions td.vue/src/views/ThreatModel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,15 @@
</a>
</h6>
</template>
<h6 v-if=diagram.description class="diagram-description-text">
<a href="javascript:void(0)" @click="editDiagram(diagram)" class="diagram-edit">
{{ diagram.description }}
</a>
</h6>
<a v-else href="javascript:void(0)" @click="editDiagram(diagram)">
<a href="javascript:void(0)" @click="editDiagram(diagram)">
<!-- "thumbnail": "./public/content/images/thumbnail.jpg", --> <b-img-lazy
class="m-auto d-block td-diagram-thumb"
:src="require(`../assets/${diagram.thumbnail ? diagram.thumbnail.split('/').pop() : 'thumbnail.jpg'}`)"
:alt="diagram.title" />
</a>
<h6 v-if=diagram.description class="diagram-description-text">
{{ diagram.description }}
</h6>
</b-card>
</b-col>
</b-row>
Expand Down

0 comments on commit 404bbde

Please sign in to comment.