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:
Benedict Aas 2018-04-16 20:11:44 +01:00 committed by GitHub
parent aeeb1d4294
commit a1b5766a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ module.exports = function (DriveSelectorService) {
return _.head(drives).description
}
return `Multiple Devices (${drives.length})`
return `${drives.length} Devices`
}
/**

View File

@ -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')
})
})