Skip to content

Commit

Permalink
Merge branch 'main' into unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed May 23, 2024
2 parents 6338c53 + b63e005 commit d3b0407
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui/src/js/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ window.operateEvents = {
}
$("#public_routes").val(public_routes_content)

let deny_routes_content = ""
if (row.deny_routes != null) {
deny_routes_content = row.deny_routes.join("\n")
}
$("#deny_routes").val(deny_routes_content)


$("#action").val("edit")

Expand Down Expand Up @@ -87,6 +93,13 @@ $(function () {
formatter: rulesFormatter

}, {
field: 'deny_routes',
title: 'Deny Routes (Number)',
sortable: true,
align: 'center',
formatter: rulesFormatter

},{
field: 'edit',
title: 'Edit',
align: 'center',
Expand Down Expand Up @@ -163,6 +176,8 @@ $(function () {

$("#mfa_routes").val("")
$("#public_routes").val("")
$("#deny_routes").val("")


$("#ruleModal").modal("show")
})
Expand Down

0 comments on commit d3b0407

Please sign in to comment.