mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
minifeat(GUI): prefix multiple devices label with quantity (#2204)
Change the `Multiple Devices (n)` label on selected devices to a quantity-prefixed form `n Devices`. Change-Type: patch
This commit is contained in:
parent
aeeb1d4294
commit
a1b5766a71
@ -42,7 +42,7 @@ module.exports = function (DriveSelectorService) {
|
||||
return _.head(drives).description
|
||||
}
|
||||
|
||||
return `Multiple Devices (${drives.length})`
|
||||
return `${drives.length} Devices`
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -305,7 +305,7 @@ describe('Browser: MainPage', function () {
|
||||
it('should return a consolidated title with quantity when there are multiple drives', function () {
|
||||
selectionState.selectDrive(drives[0].device)
|
||||
selectionState.selectDrive(drives[1].device)
|
||||
m.chai.expect(DriveSelectionController.getDrivesTitle()).to.equal('Multiple Devices (2)')
|
||||
m.chai.expect(DriveSelectionController.getDrivesTitle()).to.equal('2 Devices')
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user