From 58cfbed22e5dd395c03b71d9fb9c23b3d9993b75 Mon Sep 17 00:00:00 2001 From: Aravind Shankar Date: Sat, 15 Dec 2018 10:38:50 +0530 Subject: [PATCH] permissions ui improvments (close #1068) (#1205) --- .../Services/Data/TablePermissions/Permissions.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/console/src/components/Services/Data/TablePermissions/Permissions.js b/console/src/components/Services/Data/TablePermissions/Permissions.js index d4f2d81318039..b59cfcab6d154 100644 --- a/console/src/components/Services/Data/TablePermissions/Permissions.js +++ b/console/src/components/Services/Data/TablePermissions/Permissions.js @@ -1069,10 +1069,18 @@ class Permissions extends Component { const allColumns = tableSchema.columns.map(c => c.column_name); dispatch(permToggleAllColumns(allColumns)); }; + let accessText; + if (query === 'insert') { + accessText = 'Allow input for'; + } else if (query === 'select') { + accessText = 'Allow access to'; + } else { + accessText = 'Allow updates to'; + } _columnSection = (
- With access to columns: + {accessText} these columns: