OLD | NEW |
1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
4 | 4 |
5 <link rel="import" href="cr-butterbar.html"> | 5 <link rel="import" href="../common/cr-butterbar.html"> |
6 <link rel="import" href="cr-button.html"> | 6 <link rel="import" href="../common/cr-button.html"> |
7 <link rel="import" href="cr-dialog.html"> | 7 <link rel="import" href="../common/cr-dialog.html"> |
| 8 <link rel="import" href="../common/cr-toolbar.html"> |
8 <link rel="import" href="cr-issue-editor.html"> | 9 <link rel="import" href="cr-issue-editor.html"> |
9 <link rel="import" href="cr-toolbar.html"> | |
10 | 10 |
11 <polymer-element name="cr-issue-edit-dialog" attributes="issue"> | 11 <polymer-element name="cr-issue-edit-dialog" attributes="issue"> |
12 <template> | 12 <template> |
13 <link rel="stylesheet" href="common.css"> | 13 <link rel="stylesheet" href="../common/common.css"> |
14 | 14 |
15 <dialog is="cr-dialog" id="dialog" on-cancel="{{ cancel }}"> | 15 <dialog is="cr-dialog" id="dialog" on-cancel="{{ cancel }}"> |
16 <cr-butterbar message="{{ butterbarMessage }}"></cr-butterbar> | 16 <cr-butterbar message="{{ butterbarMessage }}"></cr-butterbar> |
17 | 17 |
18 <h1>Edit Issue</h1> | 18 <h1>Edit Issue</h1> |
19 | 19 |
20 <cr-issue-editor id="editor" issue="{{ issue }}" errors="{{ errors }
}" disabled="{{ saving }}"></cr-issue-editor> | 20 <cr-issue-editor id="editor" issue="{{ issue }}" errors="{{ errors }
}" disabled="{{ saving }}"></cr-issue-editor> |
21 | 21 |
22 <cr-toolbar> | 22 <cr-toolbar> |
23 <button is="cr-button" primary on-tap="{{ save }}">Save</button> | 23 <button is="cr-button" primary on-tap="{{ save }}">Save</button> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 }, | 72 }, |
73 showModal: function() { | 73 showModal: function() { |
74 if (!this.issue) | 74 if (!this.issue) |
75 return; | 75 return; |
76 this.$.editor.reset(); | 76 this.$.editor.reset(); |
77 this.$.dialog.showModal(); | 77 this.$.dialog.showModal(); |
78 }, | 78 }, |
79 }); | 79 }); |
80 </script> | 80 </script> |
81 </polymer-element> | 81 </polymer-element> |
OLD | NEW |