copy clipboard text directly instead of DOM target

This commit is contained in:
Kyle Spearrin 2017-02-25 11:19:35 -05:00
parent 2a4b9d88ba
commit a13da0005c
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
<div class="title">{{i18n.generatePassword}}</div>
</div>
<div class="content">
<div class="generate-password-block" id="generated-password">
<div class="generate-password-block">
{{password}}
</div>
<div class="list" style="margin-top: 0;">
@ -18,7 +18,7 @@
{{i18n.regeneratePassword}}
</a>
<a class="list-section-item text-primary" href="" ngclipboard ngclipboard-error="clipboardError(e)"
ngclipboard-success="clipboardSuccess(e)" data-clipboard-target="#generated-password">
ngclipboard-success="clipboardSuccess(e)" data-clipboard-text="{{password}}">
{{i18n.copyPassword}}
</a>
</div>