Just wondering is there an easy way to
# news
t
Just wondering is there an easy way to do this with u13? I presently need to be able to disable and re-enable the 'Save and Publish' button under specific circumstances
b
in v13 you need to make angular interceptor, it is that easy, but you can find examples for it, few people shared it at some point;)
a
Perhaps another approach with your said requirements could be to use a
ContentPublishingNotification
? That can throw an error under the same circumstances you desire. https://docs.umbraco.com/umbraco-cms/v/13.latest-lts/reference/notifications/contentservice-notifications
c
Yep, these are both of the options I could think of. I bet @Kevin Jump knows the best way.
t
Hi Andy, already done this, but the requirements are now to disable the button ie grey it out until the hangfire event completes.
a
Ah ok, maybe @bielu's answer will be applicable in which case. Not had experience doing as suggested, but certainly something to explore.
t
Yeah I think I'm going to need use the angular approach, thanks anyway.
9 Views