Permalink
Browse files

Use stripe for one disk of no type has already been provided

  • Loading branch information...
1 parent 83701a7 commit b3b3b4eb33e8da4e7edc46814b096679435ddd4f @william-gr william-gr committed Jun 7, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 gui/freeadmin/static/lib/js/freeadmin/VolumeManager.js
@@ -481,6 +481,10 @@ define([
}
if(this.disks.length == 0) {
this.vdevtype.set('value', '');
+ } else if(this.disks.length == 1) {
+ if(!this.vdevtype.get("value")) {
+ this.vdevtype.set("value", "stripe");
+ }
}
this._isOptimal = null;

0 comments on commit b3b3b4e

Please sign in to comment.