| Index: appengine/swarming/elements/res/imp/tasklist/task-list-data.html | 
| diff --git a/appengine/swarming/elements/res/imp/tasklist/task-list-data.html b/appengine/swarming/elements/res/imp/tasklist/task-list-data.html | 
| index 103c19255869b9097791636b1a9e2be3fb6b4f35..7d72fb55d4f0a9e8c9fc81c429ecbb0f89ca660a 100644 | 
| --- a/appengine/swarming/elements/res/imp/tasklist/task-list-data.html | 
| +++ b/appengine/swarming/elements/res/imp/tasklist/task-list-data.html | 
| @@ -41,6 +41,7 @@ | 
| --> | 
|  | 
| <link rel="import" href="/res/imp/common/common-behavior.html"> | 
| +<link rel="import" href="/res/imp/common/task-behavior.html"> | 
|  | 
| <dom-module id="task-list-data"> | 
| <script> | 
| @@ -51,6 +52,7 @@ | 
|  | 
| behaviors: [ | 
| SwarmingBehaviors.CommonBehavior, | 
| +          SwarmingBehaviors.TaskBehavior, | 
| ], | 
|  | 
| properties: { | 
| @@ -189,9 +191,12 @@ | 
|  | 
| // Custom filter options | 
| pMap["name"] = []; | 
| -        pMap["state"] = ["PENDING", "RUNNING", "PENDING_RUNNING", "COMPLETED", | 
| -            "COMPLETED_SUCCESS","COMPLETED_FAILURE", "EXPIRED", "TIMED_OUT", | 
| -            "BOT_DIED", "CANCELED", "ALL", "DEDUPED"]; | 
| +        // Some of these are hard coded because the server expects something | 
| +        // like "DEDUPED" instead of the more human friendly | 
| +        // "COMPLETED (DEDUPED)" | 
| +        pMap["state"] = [this.PENDING, this.RUNNING, "PENDING_RUNNING", this.COMPLETED, | 
| +            "COMPLETED_SUCCESS", "COMPLETED_FAILURE", this.EXPIRED, this.TIMED_OUT, | 
| +            this.BOT_DIED, this.CANCELED, "DEDUPED", "ALL"]; | 
| pMap["costs_usd"] = []; | 
| pMap["deduped_from"] = []; | 
| pMap["duration"] = []; | 
| @@ -237,7 +242,7 @@ | 
| } | 
| }); | 
| // Running tasks have no duration set, so we can figure it out. | 
| -          if (!t.duration && t.state === "RUNNING" && t.started_ts){ | 
| +          if (!t.duration && t.state === this.RUNNING && t.started_ts){ | 
| t.duration = (now - t.started_ts) / 1000; | 
| } | 
| // Make the duration human readable | 
|  |