Skip to content

Commit

Permalink
added tooltip instead of an extra entry
Browse files Browse the repository at this point in the history
  • Loading branch information
shafiahmed12 committed Sep 13, 2024
1 parent 4132240 commit 443601a
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/app/features/work-view/work-view.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
@fade
class="status-bar"
>
<div class="item">
<div
class="item"
matTooltip="{{T.WW.TODAY_REMAINING|translate}} ~{{workContextService.todayRemainingInProject$|async|msToString}}"
[matTooltipDisabled]="!(workContextService.isActiveWorkContextProject$|async)"
matTooltipPosition="above"
>
<span class="label">{{T.WW.ESTIMATE_REMAINING|translate}}</span>
<span class="no-wrap">
~<strong class="time-val"
Expand All @@ -28,21 +33,6 @@
></mat-icon>
</span>
</div>
<div *ngIf="(workContextService.isActiveWorkContextProject$|async)">
<div class="item">
<span class="label">{{T.WW.TODAY_REMAINING|translate}}</span>
<span class="no-wrap">
~<strong class="time-val"
>{{workContextService.todayRemainingInProject$|async|msToString}}</strong
>
<mat-icon
style="margin-left: 2px"
svgIcon="estimate_remaining"
></mat-icon>
</span>
</div>
</div>

<div class="item">
<span class="label">{{T.WW.WORKING_TODAY|translate}}</span>
<span class="no-wrap">
Expand Down

0 comments on commit 443601a

Please sign in to comment.