Skip to content

Commit

Permalink
fix: Display shared icon on cipher row even when no subtitle
Browse files Browse the repository at this point in the history
In previous commit we moved the `shared` icon on the cipher row's
details line

This line is displayed only when the cipher has a subtitle, so if a
cipher is shared but has no subtitle, then the `shared` icon will not
be displayed

This commit fix this by displaying the detail line if the cipher has a
subtitle OR if it is shared

This may produce a weird display but the case is rare enough to be
problematic
  • Loading branch information
Ldoppea committed Apr 25, 2024
1 parent 7c79827 commit 6e2b757
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<span class="detail">{{ getSubtitle(cipher) }}</span>
-->
<!---->
<span class="detail no-white-space" *ngIf="getSubtitle(cipher)">
<span class="detail no-white-space" *ngIf="getSubtitle(cipher) || (cipher.organizationId && !isKonnector)">
<i
*ngIf="cipher.organizationId && !isKonnector"
class="icon-cozy icon-cozy-details icon-share"
Expand Down

0 comments on commit 6e2b757

Please sign in to comment.