mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-05 00:47:17 +02:00
bootstrap 5 class updates
This commit is contained in:
8
netbox/project-static/src/clipboard.ts
Normal file
8
netbox/project-static/src/clipboard.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import Clipboard from 'clipboard';
|
||||
import { getElements } from './util';
|
||||
|
||||
export function initClipboard() {
|
||||
for (const element of getElements('a.copy-token', 'button.copy-secret')) {
|
||||
new Clipboard(element);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user