mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Add status for Zebra printers in label print modal [SCI-7269] (#4492)
This commit is contained in:
parent
d70428c6fe
commit
7fbac92f9c
2 changed files with 14 additions and 12 deletions
|
@ -14,27 +14,27 @@
|
|||
min-height: 4em;
|
||||
|
||||
.status-ready {
|
||||
|
||||
}
|
||||
|
||||
.status-ready {
|
||||
color: #2DBE61;
|
||||
color: $brand-success;
|
||||
}
|
||||
|
||||
.status-busy {
|
||||
color: #231F20;
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
|
||||
.status-out-of-labels {
|
||||
color: #231F20;
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
|
||||
.status-unreachable {
|
||||
color: #231F20;
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
|
||||
.status-error {
|
||||
color: #231F20;
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
|
||||
.status-offline {
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -245,8 +245,10 @@
|
|||
this.printers.push({
|
||||
id: `zebra${this.printers.length}`,
|
||||
attributes: {
|
||||
name: device.name,
|
||||
type_of: 'zebra'
|
||||
display_name: device.name,
|
||||
type_of: 'zebra',
|
||||
status: device.status.toLowerCase(),
|
||||
display_status: device.status
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -261,7 +263,7 @@
|
|||
`
|
||||
},
|
||||
printerOptionLabel(option) {
|
||||
return `${option.label} <span class="status-${option.params.status}"> • ${option.params.display_status}`
|
||||
return `${option.label}<span class="status-${option.params.status}"> • ${option.params.display_status}`
|
||||
},
|
||||
initTooltip() {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
|
Loading…
Reference in a new issue