mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 14:55:27 +02:00
fix(storidge): addDrive is called with the good parameters
This commit is contained in:
parent
e10cbbdd46
commit
9db8a8a068
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue