|
|
|
|
@ -960,7 +960,7 @@ MountConfigListView.prototype = _.extend({ |
|
|
|
|
success: function(result) { |
|
|
|
|
var onCompletion = jQuery.Deferred(); |
|
|
|
|
$.each(result, function(i, storageParams) { |
|
|
|
|
storageParams.mountPoint = storageParams.mountPoint.substr(1); // trim leading slash
|
|
|
|
|
storageParams.mountPoint = (storageParams.mountPoint === '/')? '/' : storageParams.mountPoint.substr(1); // trim leading slash
|
|
|
|
|
var storageConfig = new self._storageConfigClass(); |
|
|
|
|
_.extend(storageConfig, storageParams); |
|
|
|
|
var $tr = self.newStorage(storageConfig, onCompletion); |
|
|
|
|
|