Change "Drive Contains Image" label.

Use "Drive Mountpoint Contains Image" instead as the image may not be on
this drive but on a drive mounted in one of the mountpoins of this
drive.
We still don't want to allow flashing this drive in that situation.

Changelog-entry: Changed “Drive Contains Image” to “Drive Mountpoint Contains Image”
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2018-12-11 13:27:42 +01:00 committed by Lorenzo Alberto Maria Ambrosi
parent 7445004abf
commit f2ca997195
3 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ module.exports = {
},
containsImage () {
return 'Drive Contains Image'
return 'Drive Mountpoint Contains Image'
},
// The drive is large and therefore likely not a medium you want to write to.

@ -1 +1 @@
Subproject commit 8baa9e9a4063edc0b597baf16e266e28ed460b94
Subproject commit 6077afeee039b2ff9eab5e217ea35c79428881bc

View File

@ -1322,7 +1322,7 @@ describe('Shared: DriveConstraints', function () {
it('should return contains image error', function () {
m.chai.expect(constraints.getListDriveImageCompatibilityStatuses([ drives[0] ], image)).to.deep.equal([
{
message: 'Drive Contains Image',
message: 'Drive Mountpoint Contains Image',
type: 2
}
])
@ -1378,7 +1378,7 @@ describe('Shared: DriveConstraints', function () {
it('should return all statuses', function () {
m.chai.expect(constraints.getListDriveImageCompatibilityStatuses(drives, image)).to.deep.equal([
{
message: 'Drive Contains Image',
message: 'Drive Mountpoint Contains Image',
type: 2
},
{