blob: 48051a01a929ae4a168a13572906ebfeedc75182 [file] [log] [blame]
Dmitrii Filippovdaf0ec92020-03-17 11:27:28 +01001/**
2 * @license
3 * Copyright (C) 2020 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17import {html} from '@polymer/polymer/lib/utils/html-tag.js';
Tao Zhou3ea3a372019-11-05 08:32:34 +000018
Dmitrii Filippovdaf0ec92020-03-17 11:27:28 +010019export const htmlTemplate = html`
Tao Zhoub203c262020-04-27 12:24:31 +020020 <!-- TODO(taoalpha): move all shared styles to a style module. -->
21 <style include="shared-styles">
22 :host {
23 display: block;
24 }
25 :host([disabled]) {
26 opacity: 0.5;
27 pointer-events: none;
28 }
29 label {
30 cursor: pointer;
31 display: block;
32 width: 100%;
33 }
34 iron-autogrow-textarea {
35 font-family: var(--monospace-font-family);
36 font-size: var(--font-size-mono);
37 line-height: var(--line-height-mono);
38 width: 73ch; /* Add a char to account for the border. */
39 }
40 </style>
41 <gr-dialog
42 confirm-label="Revert Submission"
43 on-confirm="_handleConfirmTap"
44 on-cancel="_handleCancelTap"
45 >
46 <div class="header" slot="header">Revert Submission</div>
47 <div class="main" slot="main">
48 <label for="messageInput">
49 Revert Commit Message
50 </label>
51 <iron-autogrow-textarea
52 id="messageInput"
53 class="message"
54 autocomplete="on"
55 max-rows="15"
56 bind-value="{{message}}"
57 ></iron-autogrow-textarea>
58 </div>
59 </gr-dialog>
60 <gr-js-api-interface id="jsAPI"></gr-js-api-interface>
Dmitrii Filippovdaf0ec92020-03-17 11:27:28 +010061`;