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 |
deleted file mode 100644 |
index 6979787962d4e62793b162e4bbd1a138c44d44d2..0000000000000000000000000000000000000000 |
--- a/Tools/GardeningServer/ui/ct-failure-card-buttons.html |
+++ /dev/null |
@@ -1,93 +0,0 @@ |
-<!-- |
-Copyright 2014 The Chromium Authors. All rights reserved. |
-Use of this source code is governed by a BSD-style license that can be |
-found in the LICENSE file. |
---> |
- |
-<link rel="import" href="../model/ct-builder-list.html"> |
-<link rel="import" href="ct-button.html"> |
-<link rel="import" href="ct-view-handler.html"> |
-<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html"> |
-<link rel="import" href="../bower_components/paper-dialog/paper-dialog-transition.html"> |
-<link rel="import" href="../bower_components/paper-input/paper-input.html"> |
- |
-<polymer-element name="ct-failure-card-buttons" attributes="group bug"> |
- <template> |
- <style> |
- :host { |
- display: flex; |
- } |
- :host > * { |
- margin-right: 5px; |
- } |
- ct-button { |
- white-space: nowrap; |
- } |
- |
- #bugReminder { |
- font-size: large; |
- color: red; |
- } |
- </style> |
- <ct-view-handler></ct-view-handler> |
- <a href="{{ group.examineUrl }}"> |
- <ct-button id="examine" label="Examine"></ct-button> |
- </a> |
- <template if="{{ !group.isSnoozed }}"> |
- <ct-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></ct-button> |
- </template> |
- <template if="{{ group.isSnoozed }}"> |
- <ct-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></ct-button> |
- </template> |
- <ct-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></ct-button> |
- |
- <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> |
- </template> |
- <script> |
- Polymer({ |
- group: null, |
- _fileBugClicked: false, |
- |
- snooze: function() { |
- this.group.snoozeUntil(Date.now() + 60 * 60 * 1000); |
- }, |
- |
- unsnooze: function() { |
- this.group.unsnooze(); |
- }, |
- |
- linkBug: function() { |
- this.$.bug.value = this.group.bug; |
- this._fileBugClicked = false; |
- this.$.fileBugLink.href = this.group.data.fileBugLink(); |
- this.$.bugDialog.toggle(); |
- }, |
- |
- saveBug: function() { |
- this.group.setBug(this.$.bug.value); |
- }, |
- |
- removeBug: function() { |
- this.group.clearBug(); |
- }, |
- |
- fileBugClicked: function() { |
- this._fileBugClicked = true; |
- }, |
- }); |
- </script> |
-</polymer-element> |