2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-10 18:45:08 -05:00

Don't show print time remaining if it is null or 0

This commit is contained in:
Adam Goldsmith 2021-11-04 23:53:10 -04:00
parent 35bb524cb3
commit abf2144ca7

View File

@ -35,8 +35,10 @@
</div>
</div>
<div>
Job Time: {{ formatDuration(status.progress.printTime) }} elapsed,
{{ formatDuration(status.progress.printTimeLeft) }} left
Job Time: {{ formatDuration(status.progress.printTime) }} elapsed<span
v-show="status.progress.printTimeLeft"
>, {{ formatDuration(status.progress.printTimeLeft) }} left
</span>
</div>
</div>
<div>User: {{ status.job.user || '-' }}</div>