Skip to content

Commit

Permalink
fix(ui): display right icon for disabled worker models (#3419)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Coenen <[email protected]>
  • Loading branch information
bnjjj authored and fsamin committed Oct 9, 2018
1 parent 4d646cf commit 5df9047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export class WorkerModelListComponent extends Table {
this.searchView = true;
this.filteredWorkerModels = this.workerModels;
this.binaryValue = '';
this.currentPage = 1;
return;
}
this._workerModelService.getWorkerModels(this.selectedFilter, binary)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h2>{{ 'worker_model_list_title' | translate }}</h2>
<a class="ui" [routerLink]="[v.name]">
<div class="ui">
{{v.name}}
<span *ngIf="v.disabled" [smDirTooltip]="'worker_model_disabled' | translate" smDirPosition="top center"> {{ 'worker_model_disabled' | translate }}</span>
<span *ngIf="v.disabled" [smDirTooltip]="'worker_model_disabled' | translate" smDirPosition="top center"> <i class="grey ban icon" title="{{ 'worker_model_disabled' | translate }}"></i></span>
<span *ngIf="v.nb_spawn_err > 0" [smDirTooltip]="'worker_model_spawn_error_tooltip' | translate" smDirPosition="top center"> <i class="exclamation triangle icon large red" title="{{ 'worker_model_warning' | translate }}"></i> </span>
<span *ngIf="v.is_official" [smDirTooltip]="'worker_model_official_tooltip' | translate" smDirPosition="top center"> <i class="check circle outline icon large green"></i> </span>
<span *ngIf="v.is_deprecated" [smDirTooltip]="'worker_model_deprecated_tooltip' | translate" smDirPosition="top center"> <i class="exclamation circle icon large orange"></i> </span>
Expand Down

0 comments on commit 5df9047

Please sign in to comment.