2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-24 00:13:48 -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> </div>
<div> <div>
Job Time: {{ formatDuration(status.progress.printTime) }} elapsed, Job Time: {{ formatDuration(status.progress.printTime) }} elapsed<span
{{ formatDuration(status.progress.printTimeLeft) }} left v-show="status.progress.printTimeLeft"
>, {{ formatDuration(status.progress.printTimeLeft) }} left
</span>
</div> </div>
</div> </div>
<div>User: {{ status.job.user || '-' }}</div> <div>User: {{ status.job.user || '-' }}</div>