diff --git a/backend-ui/README.md b/backend-ui/README.md index 7be84b5..1c1bfc7 100644 --- a/backend-ui/README.md +++ b/backend-ui/README.md @@ -2,8 +2,10 @@ This is a User Interface for the backend integration API. +## Environment Variables -# TODO -- [ ] Code up this solution - - [ ] show an approve button for each requested entitlement - - [ ] drop-down filter to show different status entitlements (active, cancelled, etc) \ No newline at end of file +|Variable Name|Platform|Description| Example| +|--|--|---|--| +|PORT|GKE|The port the container should run on |8080| +|API_URL|GKE|The URL for the backend integration API|http://doit-easily-api.prod.svc.cluster.local:8080| +|URL_PREFIX|GKE|The prefix to append to all routes, should match path rules in your ingress|/be| diff --git a/backend-ui/static/approve.js b/backend-ui/static/approve.js index 35869e5..f60bd59 100644 --- a/backend-ui/static/approve.js +++ b/backend-ui/static/approve.js @@ -16,6 +16,9 @@ async function approve(entitlement_id) { // window.alert(text); window.location.reload(); } + else { + window.alert('Something went wrong... Please try again!'); + } } catch (err) { console.log(`Error when submitting approval: ${err}`); window.alert('Something went wrong... Please try again!'); @@ -40,6 +43,9 @@ async function reject(entitlement_id) { // window.alert(text); window.location.reload(); } + else { + window.alert('Something went wrong... Please try again!'); + } } catch (err) { console.log(`Error when submitting rejection: ${err}`); window.alert('Something went wrong... Please try again!'); diff --git a/schema.yaml b/schema.yaml index c4df8c7..c2b21be 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-alpha3' + publishedVersion: '0.1.3-alpha4' publishedVersionMetadata: releaseNote: >- Initial Release of Doit Easily backend integration.