From f6a0199e171c8b2edae160a11f078246abbca3ac Mon Sep 17 00:00:00 2001 From: Dave Cavaletto Date: Wed, 6 Jul 2022 14:16:53 -0600 Subject: [PATCH] reason from ui --- backend-ui/static/approve.js | 4 ++-- backend-ui/templates/noauth.html | 3 +-- schema.yaml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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 @@

Entitlement Requests

- @@ -68,7 +67,7 @@

Entitlement Requests

+ {% endfor %} diff --git a/schema.yaml b/schema.yaml index c2b21be..c5f5270 100644 --- a/schema.yaml +++ b/schema.yaml @@ -3,7 +3,7 @@ x-google-marketplace: applicationApiVersion: v1beta1 # The published version is required and MUST match the tag # of the deployer image - publishedVersion: '0.1.3-alpha4' + publishedVersion: '0.1.3-alpha5' publishedVersionMetadata: releaseNote: >- Initial Release of Doit Easily backend integration.
Account ID Create Time {{ entity['updateTime'] }} {{ entity['usageReportingId'] }} -