angular-busy icon indicating copy to clipboard operation
angular-busy copied to clipboard

Keep cg-busy visible with error responses

Open LeleDev opened this issue 9 years ago • 6 comments

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 avatar Jul 24 '15 10:07 LeleDev

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

benoror avatar Jul 24 '15 16:07 benoror

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

LeleDev avatar Jul 25 '15 09:07 LeleDev

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

But I totally support your suggestion.

Mart-Bogdan avatar Aug 01 '15 13:08 Mart-Bogdan

@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...

LeleDev avatar Aug 01 '15 16:08 LeleDev

+1

matpag avatar Aug 20 '15 10:08 matpag

:+1:

fferraris avatar Aug 23 '15 15:08 fferraris