Add status for Zebra printers in label print modal [SCI-7269] (#4492)

This commit is contained in:
ajugo 2022-10-04 09:57:47 +02:00 committed by GitHub
parent d70428c6fe
commit 7fbac92f9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 12 deletions

View file

@ -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;
}
}

View file

@ -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}">&nbsp•&nbsp${option.params.display_status}`
},
initTooltip() {
$('[data-toggle="tooltip"]').tooltip();