diff --git a/backend-ui/static/approve.js b/backend-ui/static/approve.js index f60bd59..2b60aea 100644 --- a/backend-ui/static/approve.js +++ b/backend-ui/static/approve.js @@ -25,7 +25,7 @@ async function approve(entitlement_id) { } } -async function reject(entitlement_id) { +async function reject(entitlement_id, reason) { try { // const token = await firebase.auth().currentUser.getIdToken(); //no auth because the entire site needs to be secured behind IAP @@ -35,7 +35,7 @@ async function reject(entitlement_id) { 'Content-Type': 'application/json', // Authorization: `Bearer ${token}`, }, - body: JSON.stringify({entitlement_id}) + body: JSON.stringify({entitlement_id, reason}) }); if (response.ok) { const text = await response.json(); diff --git a/backend-ui/templates/noauth.html b/backend-ui/templates/noauth.html index 496b28d..80793b7 100644 --- a/backend-ui/templates/noauth.html +++ b/backend-ui/templates/noauth.html @@ -38,7 +38,6 @@
Account ID | Create Time | @@ -68,7 +67,7 @@{{ entity['updateTime'] }} | {{ entity['usageReportingId'] }} | - | +
---|