Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing/Controlling buttons in user dropdown (Followers, Sales, Friends) #68

Open
dakipro opened this issue Jun 18, 2018 · 3 comments
Open

Comments

@dakipro
Copy link

dakipro commented Jun 18, 2018

Hi,
how to control or remove buttons in a user dropdown?
Or subscribe to current buttons actions?
Thankss

@TwanoO67
Copy link
Owner

Hello,

You can disactivate some part of the header by passing boolean to them, see here:
https://github.com/TwanoO67/ngx-admin-lte/blob/develop/src/widgets/app-header/app-header.component.ts

and here an example on how you can disable them:
https://github.com/TwanoO67/bootstraping-ngx-admin-lte/blob/develop/src/app/app.routes.ts#L31

you can also provide new component if you like

@dakipro
Copy link
Author

dakipro commented Jun 20, 2018

thanks, I found those options for disabling them.

But basically, user dropdown component cannot (as of todaz) be used in real applications, as buttons cannot be mapped/changed/removed?
The user/profile component provided is more of a concept of how it should be implemented, correct?
Or can I bind "logout" to do some action I want it to?

@fabioformosa
Copy link

@dakipro this topic has been treating here #57
In the meanwhile, I suggest you the workaround described there.

However, I agree with you: this project has to grow to be used in real applications. The service-based approach is OK to control some minor styles by flags, but it's rather wrong to override/customize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants