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:
Benedict Aas
2018-04-17 15:52:02 +01:00
committed by GitHub
parent a044d2fe86
commit 32bc615e78
11 changed files with 118 additions and 28 deletions

View File

@@ -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}`
}
},