Merge branch 'stable-2.16' into stable-3.0

* stable-2.16:
  Add copy-to-clipboard for generated password

Change-Id: I26cf2f4935d87d5f6b0d3f5d79fb51d5c533bd92
This commit is contained in:
David Pursehouse
2019-11-22 14:41:48 +09:00

View File

@@ -18,6 +18,7 @@ limitations under the License.
<link rel="import" href="../../../bower_components/polymer/polymer.html">
<link rel="import" href="../../../styles/gr-form-styles.html">
<link rel="import" href="../../shared/gr-button/gr-button.html">
<link rel="import" href="../../shared/gr-copy-clipboard/gr-copy-clipboard.html">
<link rel="import" href="../../shared/gr-overlay/gr-overlay.html">
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
<link rel="import" href="../../../styles/shared-styles.html">
@@ -35,6 +36,9 @@ limitations under the License.
#generatedPasswordDisplay {
margin: 1em 0;
}
#generatedPasswordDisplay .title {
width: unset;
}
#generatedPasswordDisplay .value {
font-family: var(--monospace-font-family);
}
@@ -73,6 +77,12 @@ limitations under the License.
<section id="generatedPasswordDisplay">
<span class="title">New Password:</span>
<span class="value">[[_generatedPassword]]</span>
<gr-copy-clipboard
has-tooltip
button-title="Copy password to clipboard"
hide-input
text="[[_generatedPassword]]">
</gr-copy-clipboard>
</section>
<section id="passwordWarning">
This password will not be displayed again.<br>