Files
librenms-librenms/resources/views/components/toast.blade.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
381 B
PHP
Raw Normal View History

@if($toasts)
<script>
document.addEventListener("DOMContentLoaded", function() {
@foreach ($toasts as $toast)
toastr["{{ $toast['level'] }}"]({{ Js::from(\LibreNMS\Util\Clean::html($toast['message'], $purifier_config)) }}, "{{ $toast['title'] }}", {{ JS::from($toast['options']) }});
@endforeach
});
</script>
@endif