-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: VM Sizes picker show basic input when unable to get vm sizes…
…(Local account) (#1811)
- Loading branch information
1 parent
ecb91ab
commit ce53342
Showing
13 changed files
with
422 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 41 additions & 33 deletions
74
src/app/components/pool/action/add/vm-size-picker/vm-size-picker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,48 @@ | ||
<bl-loading [status]="loadingStatus"> | ||
<bl-vm-size-picker-filter | ||
[categoriesDisplayName]="categoriesDisplayName" | ||
(filterChange)="onFilterChange($event)"> | ||
</bl-vm-size-picker-filter> | ||
<div class="vm-size-list"> | ||
<bl-table [data]="filteredCategories" [activeItem]="pickedSize" (activeItemChange)="pickSize($event)" [config]="tableConfig"> | ||
<bl-column name="title" [sortable]="true"> | ||
<div *blHeadCellDef>Name</div> | ||
<div *blCellDef="let size">{{size.title}}</div> | ||
</bl-column> | ||
<div class="no-vm-sizes-basic-input" *ngIf="loadingStatus !== LoadingStatus.Loading && !filteredCategories"> | ||
<bl-form-field> | ||
<input blInput placeholder="VM size" [formControl]="basicInput"> | ||
<bl-hint>Cannot load VM sizes. You can enter it instead.</bl-hint> | ||
</bl-form-field> | ||
</div> | ||
<ng-container *ngIf="loadingStatus === LoadingStatus.Loading || filteredCategories"> | ||
<bl-vm-size-picker-filter | ||
[categoriesDisplayName]="categoriesDisplayName" | ||
(filterChange)="onFilterChange($event)"> | ||
</bl-vm-size-picker-filter> | ||
<div class="vm-size-list"> | ||
<bl-table [data]="filteredCategories" [activeItem]="pickedSize" (activeItemChange)="pickSize($event)" [config]="tableConfig"> | ||
<bl-column name="title" [sortable]="true"> | ||
<div *blHeadCellDef>Name</div> | ||
<div *blCellDef="let size">{{size.title}}</div> | ||
</bl-column> | ||
|
||
<bl-column name="price" [sortable]="true"> | ||
<div *blHeadCellDef>Price per node (hourly)</div> | ||
<div *blCellDef="let size">{{size.prettyPrice}}</div> | ||
</bl-column> | ||
<bl-column name="price" [sortable]="true"> | ||
<div *blHeadCellDef>Price per node (hourly)</div> | ||
<div *blCellDef="let size">{{size.prettyPrice}}</div> | ||
</bl-column> | ||
|
||
<bl-column name="cores" [sortable]="true" [defaultWidth]="60"> | ||
<div *blHeadCellDef>Cores</div> | ||
<div *blCellDef="let size">{{size.vmSize.numberOfCores}}</div> | ||
</bl-column> | ||
<bl-column name="cores" [sortable]="true" [defaultWidth]="60"> | ||
<div *blHeadCellDef>Cores</div> | ||
<div *blCellDef="let size">{{size.vmSize.numberOfCores}}</div> | ||
</bl-column> | ||
|
||
<bl-column name="ram" [sortable]="true" [defaultWidth]="60"> | ||
<div *blHeadCellDef>Ram</div> | ||
<div *blCellDef="let size">{{size.prettyRAM}}</div> | ||
</bl-column> | ||
<bl-column name="ram" [sortable]="true" [defaultWidth]="60"> | ||
<div *blHeadCellDef>Ram</div> | ||
<div *blCellDef="let size">{{size.prettyRAM}}</div> | ||
</bl-column> | ||
|
||
<bl-column name="osdisk" [sortable]="true" [defaultWidth]="70"> | ||
<div *blHeadCellDef>OS Disk</div> | ||
<div *blCellDef="let size">{{size.prettyOSDiskSize}}</div> | ||
</bl-column> | ||
<bl-column name="osdisk" [sortable]="true" [defaultWidth]="70"> | ||
<div *blHeadCellDef>OS Disk</div> | ||
<div *blCellDef="let size">{{size.prettyOSDiskSize}}</div> | ||
</bl-column> | ||
|
||
<bl-column name="resourcedisk" [sortable]="true"> | ||
<div *blHeadCellDef>Resource/Temp disk</div> | ||
<div *blCellDef="let size">{{size.prettyResourceDiskSize}}</div> | ||
</bl-column> | ||
</bl-table> | ||
</div> | ||
<bl-column name="resourcedisk" [sortable]="true"> | ||
<div *blHeadCellDef>Resource/Temp disk</div> | ||
<div *blCellDef="let size">{{size.prettyResourceDiskSize}}</div> | ||
</bl-column> | ||
</bl-table> | ||
</div> | ||
<p>Note: Per-month pricing for listed nodes is an approximation only and based on estimated usage.</p> | ||
</ng-container> | ||
</bl-loading> | ||
<p>Note: Per-month pricing for listed nodes is an approximation only and based on estimated usage.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./vm-size.service"; |
Oops, something went wrong.