mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-22 07:58:52 +03:00
parent
b0eb263170
commit
58cfbed22e
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user