Closes #13962: Add a copy-to-clipboard button to the key field of the API token creation form

This commit is contained in:
Jeremy Stretch
2023-10-13 16:39:19 -04:00
parent 7983c2590e
commit 51ef4fb920
6 changed files with 14 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -2,7 +2,7 @@ import Clipboard from 'clipboard';
import { getElements } from './util';
export function initClipboard(): void {
for (const element of getElements('a.copy-content')) {
for (const element of getElements('.copy-content')) {
new Clipboard(element);
}
}