permissions ui improvments (close #1068) (#1205)

This commit is contained in:
Aravind Shankar 2018-12-15 10:38:50 +05:30 committed by Shahidh K Muhammed
parent b0eb263170
commit 58cfbed22e

View File

@ -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 = (
<div className={styles.editPermissionsSection}>
<div>
With access to <b>columns</b>:
{accessText} these <b>columns</b>:
<span
className={styles.toggleAll}
onClick={dispatchToggleAllColumns}