diff --git a/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html b/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html index 116265141..e5c428da2 100644 --- a/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html +++ b/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html @@ -7,14 +7,6 @@
- @@ -28,10 +20,6 @@ - Id @@ -85,10 +73,6 @@ - {{ item.Id }} {{ item.Node }} diff --git a/app/extensions/storidge/views/cluster/cluster.html b/app/extensions/storidge/views/cluster/cluster.html index 35420122d..e0915564a 100644 --- a/app/extensions/storidge/views/cluster/cluster.html +++ b/app/extensions/storidge/views/cluster/cluster.html @@ -61,86 +61,3 @@ >
- -// TODO: remove - diff --git a/app/extensions/storidge/views/drives/drives.html b/app/extensions/storidge/views/drives/drives.html index cea28daa1..dc5b12d89 100644 --- a/app/extensions/storidge/views/drives/drives.html +++ b/app/extensions/storidge/views/drives/drives.html @@ -15,8 +15,6 @@ title-text="Drives" title-icon="fa-hdd" dataset="drives" table-key="storidge_drives" order-by="Id" - - rescan-action="rescanAction" > diff --git a/app/extensions/storidge/views/drives/drivesController.js b/app/extensions/storidge/views/drives/drivesController.js index 7a2942bd8..6110d064a 100644 --- a/app/extensions/storidge/views/drives/drivesController.js +++ b/app/extensions/storidge/views/drives/drivesController.js @@ -1,63 +1,6 @@ angular.module('extension.storidge') -.controller('StoridgeDrivesController', ['$q', '$scope', '$state', 'Notifications', 'StoridgeDriveService', -function ($q, $scope, $state, Notifications, StoridgeDriveService) { - - // $scope.removeAction = function(selectedItems) { - // ModalService.confirm({ - // title: 'Are you sure?', - // message: 'Do you want really want to remove the drives from the storage pool?', - // buttons: { - // confirm: { - // label: 'Remove', - // className: 'btn-danger' - // } - // }, - // callback: function onConfirm(confirmed) { - // if(!confirmed) { return; } - // var actionCount = selectedItems.length; - // selectedItems = selectedItems.filter(function (item) { - // return item.Status === 'faulty'; - // }); - // angular.forEach(selectedItems, function (drive) { - // StoridgeDriveService.remove(drive.Id) - // .then(function success() { - // Notifications.success('Drive successfully removed', drive.Id); - // }) - // .catch(function error(err) { - // Notifications.error('Failure', err, 'Unable to remove drive'); - // }) - // .finally(function final() { - // --actionCount; - // if (actionCount === 0) { - // $state.reload(); - // } - // }); - // }); - // } - // }); - // }; - - // $scope.addAction = function (selectedItems) { - // var actionCount = selectedItems.length; - // selectedItems = selectedItems.filter(function (item) { - // return item.Status === 'available'; - // }); - // angular.forEach(selectedItems, function (drive) { - // StoridgeDriveService.add(drive.Device, drive.Node) - // .then(function success() { - // Notifications.success('Drive ' + drive.Device + ' successfully added on node ' + drive.Node); - // }) - // .catch(function error(err) { - // Notifications.error('Failure', err, 'Unable to add drive'); - // }) - // .finally(function final() { - // --actionCount; - // if (actionCount === 0) { - // $state.reload(); - // } - // }); - // }); - // }; +.controller('StoridgeDrivesController', ['$scope', '$state', 'Notifications', 'StoridgeDriveService', +function ($scope, $state, Notifications, StoridgeDriveService) { $scope.rescanAction = function () { StoridgeDriveService.rescan()