mirror of
https://github.com/balena-io/etcher.git
synced 2025-11-24 17:46:09 +00:00
feat(GUI): display succeeded and failed devices on finish screen (#2206)
We display the quantity of succeeded and failed devices using status dots on the finish screen. Change-Type: patch Changelog-Entry: Display succeeded and failed device quantities on the finish screen.
This commit is contained in:
@@ -34,13 +34,13 @@ module.exports = {
|
||||
|
||||
succeeded: (quantity) => {
|
||||
// eslint-disable-next-line no-magic-numbers
|
||||
const plural = quantity > 1 ? 's' : ''
|
||||
const plural = quantity === 1 ? '' : 's'
|
||||
return `Succeeded device${plural}`
|
||||
},
|
||||
|
||||
failed: (quantity) => {
|
||||
// eslint-disable-next-line no-magic-numbers
|
||||
const plural = quantity > 1 ? 's' : ''
|
||||
const plural = quantity === 1 ? '' : 's'
|
||||
return `Failed device${plural}`
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user