| 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;
|
| });
|
|
|