mirror of https://github.com/portainer/portainer
fix(storidge): addDrive is called with the good parameters
parent
e10cbbdd46
commit
9db8a8a068
|
@ -43,9 +43,9 @@ function ($q, $scope, $state, Notifications, ModalService, StoridgeDriveService)
|
||||||
return item.Status === 'available';
|
return item.Status === 'available';
|
||||||
});
|
});
|
||||||
angular.forEach(selectedItems, function (drive) {
|
angular.forEach(selectedItems, function (drive) {
|
||||||
StoridgeDriveService.add(drive.Id)
|
StoridgeDriveService.add(drive.Device, drive.Node)
|
||||||
.then(function success() {
|
.then(function success() {
|
||||||
Notifications.success('Drive successfully added', drive.Id);
|
Notifications.success('Drive ' + drive.Device + ' successfully added on node ' + drive.Node);
|
||||||
})
|
})
|
||||||
.catch(function error(err) {
|
.catch(function error(err) {
|
||||||
Notifications.error('Failure', err, 'Unable to add drive');
|
Notifications.error('Failure', err, 'Unable to add drive');
|
||||||
|
|
Loading…
Reference in New Issue