diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-02 14:45:20 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-02 14:45:20 -0400 |
| commit | f02a5dc73ac4a14c1d641a6ddbfcd2f1bd2ea0b5 (patch) | |
| tree | 514905bb030cb87fbbb686034f49e94b67b88853 /frontend/components/PleaseSignIn.js | |
| parent | ae6b07bce815a2dd21741a696eccc64c81587ef4 (diff) | |
TESTS
Diffstat (limited to 'frontend/components/PleaseSignIn.js')
| -rw-r--r-- | frontend/components/PleaseSignIn.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/components/PleaseSignIn.js b/frontend/components/PleaseSignIn.js index 4a2eabe..6be17cb 100644 --- a/frontend/components/PleaseSignIn.js +++ b/frontend/components/PleaseSignIn.js @@ -5,7 +5,8 @@ import Dump from './Dump'; const PleaseSignIn = props => ( <Query query={CURRENT_USER_QUERY}> - {({ data }) => { + {({ data, loading }) => { + if (loading) return <p>Loading...</p>; // check if they are signed in if (!data.me) { return ( @@ -24,7 +25,7 @@ const PleaseSignIn = props => ( ) { return ( <p> - Insufficient Permissions to Manage Permissions. You have: + Insufficient Permissions. You have: <strong>{data.me.permissions}</strong> and you need <strong>{props.allowedPermissions.join(' OR ')}</strong> |
