Index: Tools/GardeningServer/ui/ct-failure-card-buttons.html |
diff --git a/Tools/GardeningServer/ui/ct-failure-card-buttons.html b/Tools/GardeningServer/ui/ct-failure-card-buttons.html |
index bafc40647aac62f89249defda91fb9db27d6d4fc..5c181fa0937732f9986e5cadc3a366c2c916680a 100644 |
--- a/Tools/GardeningServer/ui/ct-failure-card-buttons.html |
+++ b/Tools/GardeningServer/ui/ct-failure-card-buttons.html |
@@ -22,6 +22,11 @@ found in the LICENSE file. |
ct-button { |
white-space: nowrap; |
} |
+ |
+ #bugReminder { |
+ font-size: large; |
+ color: red; |
+ } |
</style> |
<ct-button id="examine" on-tap="{{ examine }}" label="Examine"></ct-button> |
<template if="{{ !group.isSnoozed }}"> |
@@ -34,6 +39,16 @@ found in the LICENSE file. |
<paper-dialog heading="Enter bug number" transition="paper-transition-center" id="bugDialog"> |
<paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></paper-input> |
+ <div><a id="fileBugLink" target="_blank" on-click="{{ fileBugClicked }}"> |
+ <template if="{{ !_fileBugClicked }}"> |
+ File bug |
+ </template> |
+ </a></div> |
+ <template if="{{ _fileBugClicked }}"> |
+ <div id="bugReminder"> |
+ Remember to enter the new bug number above! |
+ </div> |
+ </template> |
<ct-button label="Remove bug link" on-tap="{{ removeBug }}" dismissive id="dialogRemoveBug"></ct-button> |
<ct-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk"></ct-button> |
</paper-dialog> |
@@ -41,6 +56,7 @@ found in the LICENSE file. |
<script> |
Polymer({ |
group: null, |
+ _fileBugClicked: false, |
examine: function() { |
this.fire('ct-examine-failures', this.group); |
@@ -56,6 +72,8 @@ found in the LICENSE file. |
linkBug: function() { |
this.$.bug.value = this.group.bug; |
+ this._fileBugClicked = false; |
+ this.$.fileBugLink.href = this.group.data.fileBugLink(); |
this.$.bugDialog.toggle(); |
}, |
@@ -66,6 +84,10 @@ found in the LICENSE file. |
removeBug: function() { |
this.group.clearBug(); |
}, |
+ |
+ fileBugClicked: function() { |
+ this._fileBugClicked = true; |
+ }, |
}); |
</script> |
</polymer-element> |