Skip to content
This repository was archived by the owner on Mar 23, 2019. It is now read-only.

Client view initial search content #158

Closed
helfi92 opened this issue Oct 11, 2018 · 2 comments
Closed

Client view initial search content #158

helfi92 opened this issue Oct 11, 2018 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@helfi92
Copy link
Contributor

helfi92 commented Oct 11, 2018

When logged in, navigating to the clients view should have the search bar should have its value set as the current user client ID.

screen shot 2018-10-11 at 7 58 40 am

For example, if the current logged in user has mozilla-auth0/ad|Mozilla-LDAP|haali as their client ID then the search bar should have this value as well as perform a search in order to filter the table with proper values. It's perfectly fine if the table becomes empty since our database doesn't always return a value for paginated results. We have a separate bug for that #67.

screen shot 2018-10-11 at 8 06 50 am

@projectyang
Copy link
Contributor

Hi helfi92,

Can I take a crack at this issue?

@helfi92
Copy link
Contributor Author

helfi92 commented Oct 11, 2018

Go for it :)

To get access to the user object, you will probably need to import and add the withAuth decorator (e.g.,

). Once that's done, you will be able to access the user object via this.props.user. You'll be able to see the client ID there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants