diff --git a/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html b/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html
index 8a3c23b5a..a9739cd28 100644
--- a/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html
+++ b/app/extensions/storidge/components/drives-datatable/storidgeDrivesDatatable.html
@@ -10,10 +10,6 @@
-
@@ -24,10 +20,6 @@
-
-
-
-
Id
@@ -76,15 +68,14 @@
|
+
+ Actions
+ |
-
-
-
-
{{ item.Id }}
|
{{ item.Node }} |
@@ -95,6 +86,11 @@
{{ item.Status|capitalize }}
|
+
+
+ |
Loading... |
diff --git a/app/extensions/storidge/models/profile.js b/app/extensions/storidge/models/profile.js
index 4dce4bfc2..f9e2defbe 100644
--- a/app/extensions/storidge/models/profile.js
+++ b/app/extensions/storidge/models/profile.js
@@ -43,7 +43,10 @@ export function StoridgeProfileModel(name, data) {
this.MaxBandwidth = data.bandwidth.max;
}
- this.Filesystem = data.filesystem;
+ if (data.filesystem) {
+ this.Filesystem = data.filesystem.type;
+ }
+ // this.Filesystem = data.filesystem;
var service = data.service;
@@ -96,7 +99,9 @@ export function StoridgeCreateProfileRequest(model) {
};
}
- this.filesystem = model.Filesystem;
+ this.filesystem = {
+ type: model.Filesystem
+ };
var service = {};
diff --git a/app/extensions/storidge/views/drives/drivesController.js b/app/extensions/storidge/views/drives/drivesController.js
index b16f67837..c769385e4 100644
--- a/app/extensions/storidge/views/drives/drivesController.js
+++ b/app/extensions/storidge/views/drives/drivesController.js
@@ -2,25 +2,14 @@ angular.module('extension.storidge')
.controller('StoridgeDrivesController', ['$scope', '$state', 'Notifications', 'StoridgeDriveService',
function ($scope, $state, Notifications, StoridgeDriveService) {
- $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();
- }
- });
+ $scope.addAction = function (drive) {
+ StoridgeDriveService.add(drive.Device, drive.Node)
+ .then(function success() {
+ Notifications.success('Drive ' + drive.Device + ' successfully added on node ' + drive.Node);
+ $state.reload();
+ })
+ .catch(function error(err) {
+ Notifications.error('Failure', err, 'Unable to add drive');
});
};
diff --git a/assets/css/app.css b/assets/css/app.css
index 33990fc9d..9f30080ed 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -256,6 +256,12 @@ a[ng-click]{
border-radius: 3px;
}
+.btn-datatable {
+ padding: 2.6px 7.8px 3.9px;
+ line-height: 1;
+ margin: 0px 0px 0px 0px;
+}
+
@media screen and (min-width: 1107px) {
.btn-responsive {
padding: 6px 12px;