mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Copy existing Alert Rule (#11195)
This commit is contained in:
@@ -72,6 +72,7 @@ if (Auth::user()->hasGlobalAdmin()) {
|
||||
<li><a href="#" name="import-query" id="import-query">SQL Query</a></li>
|
||||
<li><a href="#" name="import-old-format" id="import-old-format">Old Format</a></li>
|
||||
<li><a href="#" name="import-collection" id="import-collection">Collection</a></li>
|
||||
<li><a href="#" name="import-alert_rule" id="import-alert_rule">Alert Rule</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -282,6 +283,11 @@ if (Auth::user()->hasGlobalAdmin()) {
|
||||
$("#search_rule_modal").modal('show');
|
||||
});
|
||||
|
||||
$('#import-alert_rule').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$("#search_alert_rule_modal").modal('show');
|
||||
});
|
||||
|
||||
$('#create-alert').on('show.bs.modal', function(e) {
|
||||
//get data-id attribute of the clicked element
|
||||
var rule_id = $(e.relatedTarget).data('rule_id');
|
||||
|
Reference in New Issue
Block a user