mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-12-25 11:05:41 -05:00
Use bootstrap progress bar instead of HTML progress bar
This commit is contained in:
parent
5b53c9b7e1
commit
f10608ef63
@ -12,10 +12,24 @@
|
||||
<div>{{ status.state.text }}</div>
|
||||
<div>Job File Name: {{ status.job.file.name || 'None' }}</div>
|
||||
<div v-if="status.progress.completion">
|
||||
<div>
|
||||
<div class="d-flex">
|
||||
Job Completion:
|
||||
{{ status.progress.completion.toFixed(2) }}%
|
||||
<progress :value="status.progress.completion" max="100"></progress>
|
||||
<div class="progress flex-fill ms-2" style="height: 2em">
|
||||
<div
|
||||
class="progress-bar"
|
||||
:class="{
|
||||
'progress-bar-striped': status.state.flags.printing,
|
||||
'progress-bar-animated': status.state.flags.printing,
|
||||
}"
|
||||
role="progressbar"
|
||||
:style="{ width: status.progress.completion + '%' }"
|
||||
:aria-valuenow="status.progress.completion.toFixed(2)"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
>
|
||||
{{ status.progress.completion.toFixed(2) }}%
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
Job Time: {{ formatDuration(status.progress.printTime) }} elapsed,
|
||||
|
Loading…
Reference in New Issue
Block a user