Skip to content

Commit

Permalink
Update filter for disk type
Browse files Browse the repository at this point in the history
Issue: #83
  • Loading branch information
dtretyakov committed Dec 20, 2017
1 parent f9cb94c commit a78b2a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function ArmImagesViewModel($, ko, dialog, config) {
if (!value) return;

var storageTypes = [{id: "Standard_LRS", text: "HDD"}];
if (/(DS|GS|LS|FS)/i.test(value)) {
if (!/^(Basic|Standard)_A\d+$/i.test(value)) {
storageTypes.push({id: "Premium_LRS", text: "SSD"});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
</td>
</tr>
<tr data-bind="if: image().imageType() == 'Image'">
<th class="noBorder"><label for="${cons.storageAccountType}">Storage Type: <l:star/></label></th>
<th class="noBorder"><label for="${cons.storageAccountType}">Disk Type: <l:star/></label></th>
<td>
<select name="${cons.storageAccountType}" class="longField ignoreModified"
data-bind="options: storageAccountTypes, optionsText: 'text', optionsValue: 'id',
Expand Down

0 comments on commit a78b2a5

Please sign in to comment.