fix(storidge): addDrive is called with the good parameters

storidge-standalone
baron_l 2019-03-18 16:59:09 +01:00
parent e10cbbdd46
commit 9db8a8a068
1 changed files with 2 additions and 2 deletions

View File

@ -43,9 +43,9 @@ function ($q, $scope, $state, Notifications, ModalService, StoridgeDriveService)
return item.Status === 'available';
});
angular.forEach(selectedItems, function (drive) {
StoridgeDriveService.add(drive.Id)
StoridgeDriveService.add(drive.Device, drive.Node)
.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) {
Notifications.error('Failure', err, 'Unable to add drive');