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

Keep cg-busy visible with error responses #74

Open
LeleDev opened this issue Jul 24, 2015 · 6 comments
Open

Keep cg-busy visible with error responses #74

LeleDev opened this issue Jul 24, 2015 · 6 comments

Comments

@LeleDev
Copy link

LeleDev commented Jul 24, 2015

Hi there!

I'd like to in istruct cg-busy to stay visible (maybe showing an error message instead of the loading one) in case of request error, in order to block user interaction with not-ready content.

Is there any way way to achieve this result with cg-busy at the moment? If not, could this feature be easily added to the existing code?

Thank you in advance

@LeleDev LeleDev changed the title Keep cg-busy visible with error response Keep cg-busy visible with error responses Jul 24, 2015
@benoror
Copy link

benoror commented Jul 24, 2015

You might use an http interceptor, but this is totally not related to cg-busy

@LeleDev
Copy link
Author

LeleDev commented Jul 25, 2015

It's quite releate, imho... Cg-busy already take care of loading status and success status... why not adding a little support for error status? It's a pretty common scenario the need of blocking stuff if something goes wrong

@Mart-Bogdan
Copy link

@LeleDev i suggest you can use ng-if inside your template to disable UI.

But I totally support your suggestion.

@LeleDev
Copy link
Author

LeleDev commented Aug 1, 2015

@Mart-Bogdan It wouldn't be the same, because in that case the controls would be completely removed... instead I just want to lock them while keeping them visible under the cg-busy semi-transparent backdrop.

I'm using cg-busy everywhere in my app, so I'd need an huge effort to achieve the same result with a non-native solution...

@matpag
Copy link

matpag commented Aug 20, 2015

+1

1 similar comment
@fferraris
Copy link

👍

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

5 participants