Enhance milestone progress calculation and logging: Add detailed logging for the milestone progress function to aid in debugging and improve handling of cases with no dashboard data. Update HTML to display progress with two decimal places for better precision.
This commit is contained in:
parent
0962573176
commit
a042745c04
2 changed files with 11 additions and 6 deletions
|
|
@ -43,16 +43,16 @@
|
|||
</div>
|
||||
<div class="col-12 col-md-4 q-mt-md">
|
||||
<q-circular-progress
|
||||
show-value
|
||||
font-size="12px"
|
||||
:value="getMilestoneProgress()"
|
||||
size="80px"
|
||||
:thickness="0.25"
|
||||
color="orange-7"
|
||||
track-color="orange-1"
|
||||
class="q-ma-md"
|
||||
class="q-ma-md text-orange-8"
|
||||
>
|
||||
<div class="text-body2 text-weight-bold text-orange-8">
|
||||
${Math.round(getMilestoneProgress())}%
|
||||
</div>
|
||||
${(getMilestoneProgress() || 0).toFixed(2)}%
|
||||
</q-circular-progress>
|
||||
<div class="text-body2 text-weight-medium text-grey-7">to ${getNextMilestone().name}</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue