Skip to content

Commit

Permalink
permissions ui improvments (close #1068) (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvi3411301 authored and shahidhk committed Dec 15, 2018
1 parent b0eb263 commit 58cfbed
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 58cfbed

Please sign in to comment.