1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

migrate secrets to bootstrap 5 and deprecate jquery functions

This commit is contained in:
checktheroads
2021-04-17 17:18:13 -07:00
parent 726ab7fc05
commit eb951fdaf1
10 changed files with 294 additions and 86 deletions

View File

@ -7,7 +7,7 @@ import { initSpeedSelector, initForms } from './forms';
import { initRackElevation } from './buttons';
import { initClipboard } from './clipboard';
import { initSearchBar } from './search';
// import { initGenerateKeyPair } from './secrets';
import { initGenerateKeyPair, initLockUnlock, initGetSessionKey } from './secrets';
import { getElements } from './util';
const INITIALIZERS = [
@ -21,7 +21,9 @@ const INITIALIZERS = [
initColorSelect,
initRackElevation,
initClipboard,
// initGenerateKeyPair,
initGenerateKeyPair,
initLockUnlock,
initGetSessionKey,
] as (() => void)[];
/**
@ -35,7 +37,6 @@ function initBootstrap(): void {
new Tooltip(tooltip, { container: 'body', boundary: 'window' });
}
for (const modal of getElements('[data-bs-toggle="modal"]')) {
// for (const modal of getElements('div.modal')) {
new Modal(modal);
}
initMessageToasts();