This repository has been archived by the owner on Mar 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
feat(so-additional-fields): Additional fields for SO #911
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b75a7d6
Merge branch '498-so-classes' to 502-so-chooser
ksendart b2ae76c
#502-so-chooser - add modal window for service offerings
ksendart 657e61f
#502-so-chooser - remove comments
ksendart 1f2677a
#502-so-chooser - after discussion
ksendart aa1c9a8
#502-so-chooser - tests
ksendart f50297e
Merge branch 'master' into 502-so-chooser
ksendart f5b725f
#502-so-chooser - renaming errors fix
ksendart 1a5f8d2
#502-so-chooser - rewrite for account tags
ksendart 071d350
#502-so-chooser - rewrite for account tags, sort groups
ksendart 04804a2
#502-so-chooser - edit config guide
ksendart 12e39fc
update configGuide
ksendart afa704b
#502-so-chooser - after review
ksendart 8285412
#502-so-chooser - after review
ksendart 215aa07
#502-so-chooser - after review
ksendart 85a383c
Merge branch 'master' into 502-so-chooser
ksendart 56ce706
Merge branch 'master' into 502-so-chooser
ksendart 8a12e15
Merge branch 'master' into 502-so-chooser
ksendart cf36981
#502-so-chooser - after review
ksendart 4d6fb3e
#502-so-chooser - after review
ksendart adedef9
#859-so-additional-fields - add show/hide button
ksendart 64841bf
#859-so-additional-fields - fix translations
ksendart f6d3b57
#859-so-additional-fields - buttons order
ksendart c5b607e
#859-so-additional-fields - after review
ksendart 8d1f7bd
Merge branch 'master' into 859-so-additional-fields
ksendart abc36e8
859-so-additional-fields - after review
ksendart ecba8f5
Merge branch 'master' into 859-so-additional-fields
ksendart af9e334
#859-so-additional-fields - after testing
ksendart f8db041
#859-so-additional-fields - after testing
ksendart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,60 +2,90 @@ | |
<ng-container *ngIf="group.items.length"> | ||
<h4>{{ getName(group.soClass) | translate }}</h4> | ||
<h5>{{ getDescription(group.soClass) | translate }}</h5> | ||
<table class="mat-table"> | ||
<thead> | ||
<tr class="mat-header-row"> | ||
<th class="mat-header-cell name-text" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NAME' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.NAME' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.CPU_NUMBER' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.CPU_NUMBER' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.CPU_SPEED' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.CPU_SPEED' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.MEMORY' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.MEMORY' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate }} | ||
</th> | ||
<th class="mat-header-cell"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="mat-row" | ||
*ngFor="let offering of group.items" | ||
(click)="selectOffering(offering)" | ||
> | ||
<td class="mat-cell name-text" [matTooltip]="offering.name"> | ||
<span [innerHTML]="offering.name | highlight:query"></span> | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.cpunumber || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.cpuspeed || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.memory || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.networkrate || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
<span> | ||
<mat-radio-button id="{{offering.id}}" [checked]="selectedOffering && offering.id === selectedOffering.id"></mat-radio-button> | ||
</span> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="table-wrapper"> | ||
<table class="mat-table"> | ||
<thead> | ||
<tr class="mat-header-row"> | ||
<th class="mat-header-cell name-text" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NAME' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.NAME' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.CPU_NUMBER' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.CPU_NUMBER' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.CPU_SPEED' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.CPU_SPEED' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.MEMORY' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.MEMORY' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" *ngIf="showFields" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.DISK_BYTES_READ' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" *ngIf="showFields" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.DISK_BYTES_WRITE' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" *ngIf="showFields" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.DISK_IOPS_READ' | translate }} | ||
</th> | ||
<th class="mat-header-cell field" *ngIf="showFields" | ||
[matTooltip]="'SERVICE_OFFERING.COLUMN.NETWORK_RATE' | translate"> | ||
{{ 'SERVICE_OFFERING.COLUMN.DISK_IOPS_WRITE' | translate }} | ||
</th> | ||
<th class="mat-header-cell"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="mat-row" | ||
*ngFor="let offering of group.items" | ||
(click)="selectOffering(offering)" | ||
> | ||
<td class="mat-cell name-text" [matTooltip]="offering.name"> | ||
<span [innerHTML]="offering.name | highlight:query"></span> | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.cpunumber || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.cpuspeed || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.memory || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
{{ offering.networkrate || '-' }} | ||
</td> | ||
<td class="mat-cell" *ngIf="showFields"> | ||
{{ offering.diskBytesReadRate || '-' }} | ||
</td> | ||
<td class="mat-cell" *ngIf="showFields"> | ||
{{ offering.diskBytesWriteRate || '-' }} | ||
</td> | ||
<td class="mat-cell" *ngIf="showFields"> | ||
{{ offering.diskIopsReadRate || '-' }} | ||
</td> | ||
<td class="mat-cell" *ngIf="showFields"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it is better way to use 'ng-container' ( for all 'td' ) with 'ngIf' here |
||
{{ offering.diskIopsWriteRate || '-' }} | ||
</td> | ||
<td class="mat-cell"> | ||
<span> | ||
<mat-radio-button id="{{offering.id}}" [checked]="selectedOffering && offering.id === selectedOffering.id"></mat-radio-button> | ||
</span> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</ng-container> | ||
</div> | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
src/app/service-offering/service-offering-list/service-offering-list.component.scss
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it is better way to use 'ng-container' ( for all 'th' ) with 'ngIf' here