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

Unified Diff: Tools/GardeningServer/ui/ct-failure-card-buttons.html

Issue 502293003: Allow filing a bug from the "Link Bug" dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix link click Created 6 years, 3 months 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: 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>

Powered by Google App Engine
This is Rietveld 408576698