2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-14 12:13:48 -05:00

Show print completion percentage, fix progress bar maximum

This commit is contained in:
Adam Goldsmith 2020-09-25 18:11:50 -04:00
parent 9911c8b72c
commit 393c8746a0

View File

@ -7,11 +7,13 @@
<div>Job File Name: {{ status.job.file.name || 'None' }}</div> <div>Job File Name: {{ status.job.file.name || 'None' }}</div>
<div> <div>
Job Completion: Job Completion:
{{ status.progress.completion }}%
<progress <progress
v-if="status.progress.completion" v-if="status.progress.completion"
:value="status.progress.completion" :value="status.progress.completion"
max="100"
> >
{{ status.progress.completion }} {{ status.progress.completion }}%
</progress> </progress>
<span v-else> - </span> <span v-else> - </span>
</div> </div>