mirror of
https://github.com/simon987/task_tracker.git
synced 2025-04-10 14:06:43 +00:00
Hide workers starting with $ in /workers
This commit is contained in:
parent
a0650a89cc
commit
4853710f74
@ -56,7 +56,9 @@ export class WorkerDashboardComponent implements OnInit {
|
||||
|
||||
private updateChart(data) {
|
||||
|
||||
data = data.sort((a, b) => b.closed_task_count - a.closed_task_count);
|
||||
data = data
|
||||
.filter(w => !w.alias.startsWith("$"))
|
||||
.sort((a, b) => b.closed_task_count - a.closed_task_count);
|
||||
|
||||
this.chart.data.labels = data.map(w => w.alias);
|
||||
this.chart.data.datasets = [{
|
||||
|
Loading…
x
Reference in New Issue
Block a user