mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Remove flasher Just use a bit of custom code to interface with toastr js This is able to retain our custom theme and work properly * Fix style issues * Missed reference rename * Remove test code :) * Fix a missed rename * Fix one more missed reference * Fix typo
10 lines
381 B
PHP
10 lines
381 B
PHP
@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
|