Implement copyToClipboard in ImpersonateDialog
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { ref, useTemplateRef } from 'vue';
|
||||
import { Dialog, TextInput, FormGroup, Button } from 'pankow';
|
||||
import { copyToClipboard } from 'pankow/utils';
|
||||
import UsersModel from '../models/UsersModel.js';
|
||||
|
||||
const usersModel = UsersModel.create();
|
||||
@@ -27,7 +28,8 @@ function onGeneratePassword() {
|
||||
}
|
||||
|
||||
function onCopyPassword() {
|
||||
// TODO
|
||||
copyToClipboard(password.value);
|
||||
window.pankow.notify({ type: 'success', text: 'Copied to clipboard!' });
|
||||
}
|
||||
|
||||
async function onSubmit() {
|
||||
|
||||
Reference in New Issue
Block a user