Implement copyToClipboard in ImpersonateDialog

This commit is contained in:
Johannes Zellner
2025-02-13 16:36:27 +01:00
parent 59721a3f1a
commit 6a303ae50a

View File

@@ -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() {