copy clipboard text directly instead of DOM target
This commit is contained in:
parent
2a4b9d88ba
commit
a13da0005c
|
@ -8,7 +8,7 @@
|
||||||
<div class="title">{{i18n.generatePassword}}</div>
|
<div class="title">{{i18n.generatePassword}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="generate-password-block" id="generated-password">
|
<div class="generate-password-block">
|
||||||
{{password}}
|
{{password}}
|
||||||
</div>
|
</div>
|
||||||
<div class="list" style="margin-top: 0;">
|
<div class="list" style="margin-top: 0;">
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
{{i18n.regeneratePassword}}
|
{{i18n.regeneratePassword}}
|
||||||
</a>
|
</a>
|
||||||
<a class="list-section-item text-primary" href="" ngclipboard ngclipboard-error="clipboardError(e)"
|
<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}}
|
{{i18n.copyPassword}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue