Skip to content

Commit

Permalink
#1277 Improve the tooltip content to explain who has shared and who h…
Browse files Browse the repository at this point in the history
…as received the share
  • Loading branch information
nadouani committed May 22, 2020
1 parent 0a13085 commit fffc330
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/app/views/partials/case/case.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ <h3 class="box-title">List of cases ({{$vm.list.total || 0}} of {{$vm.caseStats.
</td>
<td align="center">
<a href ng-if="currentCase.stats.shareCount > 0" ui-sref="app.case.sharing({caseId: currentCase.id})" class="noline"
uib-tooltip="{{'Shared with ' + currentCase.stats.shareCount + ' organisation(s)'}}"
uib-tooltip="{{ {
true: 'Current organisation has shared this Case with ' + currentCase.stats.shareCount + ' organisation(s)',
false: 'This Case has been shared by its owner with ' + currentCase.stats.shareCount + ' organisation(s)'
}[currentCase.stats.isOwner] }}"
tooltip-placement="left-middle">

<i class="fa fa-users"></i>
Expand Down

0 comments on commit fffc330

Please sign in to comment.