Skip to content

Commit

Permalink
fix(dashboard): only show abstruse generated docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Nov 6, 2017
1 parent 362f24e commit 47fb3f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions src/app/components/app-dashboard/app-dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,7 @@ <h3>Container resource consumption</h3>
<div class="columns is-multiline" *ngIf="containers?.length">
<div class="column is-6" *ngFor="let c of containers; let i = index;">
<div class="container-item">
<div class="container-header">
<div class="columns is-multiline">
<div class="column is-6">
{{ c.name }}
</div>
<div class="column is-4">
<span class="data-label-mini yellow" *ngIf="c?.debug">Debugging</span>
</div>
<div class="column is-2">
<span class="icon circle" name="stop-job" (click)="stopJob($event, c.name)">
<i class="ionicon ion-power"></i>
</span>
</div>
</div>
</div>
<div class="container-header">{{ c.name }}</div>
<div class="container-data border-bottom">
<div class="data-info">
<span>Memory Total</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class AppDashboardComponent implements OnInit, OnDestroy {
this.cpuPercent = e.data.load;
this.cpuCores = e.data.cores.map(core => core.total);
} else if (e.type === 'containersStats') {
this.containers = e.data;
this.containers = e.data.filter(container => container && container.name && container.name.startsWith('abstruse'));
}
});

Expand Down

0 comments on commit 47fb3f1

Please sign in to comment.