From 717c7b036ab0fbf8505e43a0b40d5a1b1a5daf56 Mon Sep 17 00:00:00 2001 From: Catherine Diep Date: Wed, 16 Nov 2016 14:33:02 -0800 Subject: [PATCH] Rename key name from 'reason' to 'registration_decline_reason' Currently whenever Foundation admins decline a vendor registration request. A key/value pair will be added to the vendor properties field with the key name as 'reason'. Since the key/value data will be shown as-is in the response from the 'v1/vendors/{vendor_id} API call. This patch renames the key name to a more descriptive one. Change-Id: I6a43f7671a61a05bb2f0186dc52031eb6760eb59 --- refstack-ui/app/components/vendors/vendor.html | 8 ++++---- refstack-ui/app/components/vendors/vendorController.js | 3 ++- refstack/api/controllers/vendors.py | 7 ++++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/refstack-ui/app/components/vendors/vendor.html b/refstack-ui/app/components/vendors/vendor.html index ad8f5f9a..3c3d504c 100644 --- a/refstack-ui/app/components/vendors/vendor.html +++ b/refstack-ui/app/components/vendors/vendor.html @@ -33,9 +33,9 @@
-
+

- Decline reason: {{ctrl.vendorProperties.reason}}
+ Registration decline reason: {{ctrl.vendorProperties.registration_decline_reason}}
@@ -65,10 +65,10 @@ - +
- +