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

Unified Diff: dashboard/dashboard/elements/alerts-table.html

Issue 2569523003: wip (Closed)
Patch Set: wip Created 4 years 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
« no previous file with comments | « dashboard/dashboard/elements/alert-remove-box.html ('k') | dashboard/dashboard/elements/bug-info-span.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/alerts-table.html
diff --git a/dashboard/dashboard/elements/alerts-table.html b/dashboard/dashboard/elements/alerts-table.html
index 84a8ee0bc8a37b50ea0cb065ff8b0ea3650030f6..4ef20bc87c405417e9ef78594b01a56340f64749 100644
--- a/dashboard/dashboard/elements/alerts-table.html
+++ b/dashboard/dashboard/elements/alerts-table.html
@@ -359,7 +359,8 @@ found in the LICENSE file.
key="{{item.key}}"
recovered$="{{item.recovered}}"
xsrf-token="{{xsrfToken}}"
- on-untriaged="onUntriaged">
+ on-untriaged="onUntriaged"
+ on-undountriaged="onUndoUntriaged">
</bug-info-span>
<bisect-status hidden$="{{!item.bug_id}}"
status="{{item.bisect_status}}">
@@ -498,6 +499,14 @@ found in the LICENSE file.
NUM_ALERTS_TO_CHECK_ON_INIT: {
type: Number,
value: 10
+ },
+
+ deletedBugId: {
+ type: Number,
+ },
+
+ deletedBugKey: {
+ type: Number,
}
},
@@ -760,6 +769,7 @@ found in the LICENSE file.
* @param {Object} detail Parameters sent with the event.
*/
onUntriaged: function(event, detail) {
+ console.log('untraige alert');
var key = detail.key;
for (var i = 0; i < this.alertList.length; i++) {
if (this.alertList[i]['key'] == key) {
@@ -768,6 +778,17 @@ found in the LICENSE file.
}
},
+ onUndoUntriaged: function(event, detail) {
+ console.log('undountraige alert');
+ var key = detail.key;
+ var bugId = detail.bugId;
+ for (var i = 0; i < this.alertList.length; i++) {
+ if (this.alertList[i]['key'] == key) {
+ this.setAlertList(i, 'bug_id', bugId);
+ }
+ }
+ },
+
/**
* Either unchecks or checks all alerts.
*/
@@ -1110,6 +1131,8 @@ found in the LICENSE file.
* @param {Event} e The event for button click.
*/
onTriaged: function(e) {
+ console.log('onTriaged');
+ console.log(e);
var triagedKeys = e.detail.alerts.map(function(alert) {
return alert.key;
});
« no previous file with comments | « dashboard/dashboard/elements/alert-remove-box.html ('k') | dashboard/dashboard/elements/bug-info-span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698