Skip to content

Commit

Permalink
Add deny rule UI
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed May 13, 2024
1 parent cdbdbec commit 1566c26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/js/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ $(function () {
$save.on("click", function () {
let data = {
"effects": $('#effects').val(),
"deny_routes": $('#deny_routes').val().split("\n").filter(element => element),
"mfa_routes": $('#mfa_routes').val().split("\n").filter(element => element),
"public_routes": $('#public_routes').val().split("\n").filter(element => element),
}
Expand Down
6 changes: 6 additions & 0 deletions ui/templates/policy/rules.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ <h5 class="modal-title" id="ruleModalLabel"></h5>
<input type="text" class="form-control" id="effects" name="effects">
</div>

<div class="form-group">
<label for="mfa_routes">Deny Routes (New line delimited)</label>
<textarea class="form-control" id="deny_routes" name="deny_routes" rows="3">
</textarea>
</div>

<div class="form-group">
<label for="mfa_routes">MFA Routes (New line delimited)</label>
<textarea class="form-control" id="mfa_routes" name="mfa_routes" rows="3">
Expand Down

0 comments on commit 1566c26

Please sign in to comment.