fix(GUI): correct relative notification icon path (#1470)

We update the relative icon path to the correct relative path containing
the Etcher icon.

See: https://github.com/resin-io/etcher/issues/1443
This commit is contained in:
Benedict Aas 2017-06-01 22:07:12 +01:00 committed by Juan Cruz Viotti
parent 296a554637
commit ee3c146785

View File

@ -60,6 +60,8 @@ module.exports = function(
// otherwise Windows throws EPERM
DriveScannerService.stop();
const iconPath = '../../assets/icon.png';
ImageWriterService.flash(image.path, drive).then(() => {
if (!flashState.wasLastFlashCancelled()) {
notification.send('Success!', {
@ -67,7 +69,7 @@ module.exports = function(
imageBasename: path.basename(image.path),
drive
}),
icon: '../../../../../assets/icon.png'
icon: iconPath
});
$state.go('success');
}
@ -78,7 +80,7 @@ module.exports = function(
imageBasename: path.basename(image.path),
drive
}),
icon: '../../../../../assets/icon.png'
icon: iconPath
});
// TODO: All these error codes to messages translations