Added akeyless api integration

This commit is contained in:
Mike Conrad
2023-08-31 17:14:13 -04:00
parent e0d4cb41b0
commit 80737a2927
9 changed files with 95 additions and 9 deletions

View File

@ -2,6 +2,11 @@ export function toast(element: HTMLDivElement, message: string) {
// Target our predefined DIV that will hold toast messages.
const toastDiv = element.getElementsByClassName('toast')
const interval = setInterval(() => {
toastDiv[0].remove()
clearInterval(interval)
}, 5000)
// If we currently have a toast displayed, let's remove it from the DOM.
if (toastDiv && toastDiv.length != 0) {
for (const el of toastDiv){