Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: appengine/swarming/ui/res/imp/taskpage/task-page.html

Issue 2470973003: give user notification if bot or task not found (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/ui/res/imp/taskpage/task-page.html
diff --git a/appengine/swarming/ui/res/imp/taskpage/task-page.html b/appengine/swarming/ui/res/imp/taskpage/task-page.html
index 7ddc306d86b1284384f43502f5d1828822e442eb..6493a507757ec76e26cf86ac369d1da6d94f70b1 100644
--- a/appengine/swarming/ui/res/imp/taskpage/task-page.html
+++ b/appengine/swarming/ui/res/imp/taskpage/task-page.html
@@ -124,7 +124,8 @@
busy="{{_busy}}"
request="{{_request}}"
result="{{_result}}"
- stdout="{{_stdout}}">
+ stdout="{{_stdout}}"
+ task_exists="{{_task_exists}}">
</task-page-data>
<div class="horizontal layout wrap">
@@ -139,7 +140,8 @@
<button on-click="_promptCancel">Cancel</button>
</template>
</div>
- <table>
+ <h2 hidden$="[[_task_exists]]">Task not found.</h2>
+ <table hidden$="[[_not(_task_exists)]]">
<tr>
<td>Name</td>
<td>[[_request.name]]</td>
@@ -355,9 +357,9 @@
</template>
</table>
- <div class="title">Task Execution</div>
+ <div class="title" hidden$="[[_not(_task_exists)]]">Task Execution</div>
<template is="dom-if" if="[[_wasPickedUp(_result)]]">
- <table>
+ <table hidden$="[[_not(_task_exists)]]">
<tr>
<td>Bot assigned to task</td>
<td><a href$="[[_botLink(_result.bot_id)]]">[[_result.bot_id]]</td>
@@ -435,7 +437,7 @@
</template>
</div>
- <div class="flex right">
+ <div class="flex right" hidden$="[[_not(_task_exists)]]">
<div class="horizontal layout">
<div class="tabs">
<paper-tabs selected="{{_show_raw}}" no-bar>
« no previous file with comments | « appengine/swarming/ui/res/imp/common/common-behavior.html ('k') | appengine/swarming/ui/res/imp/taskpage/task-page-data.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698