Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Refresh abp.features.getValue after changes on server side #9842


User avatar
0
ipservant created

Prerequisites

  • What is your product version? -> 8.1.0
  • What is your product type (Angular or MVC)? -> Angular
  • What is product framework type (.net framework or .net core)? -> .net core

Hi, We added per-user licensing and thus show abp.features.getValue('App.MaxUserCount') on the subscription-management.component additionally. But after a change of this setting by a paymentAppService this value is not updating in the UI until page reload. Can you please let us know how to refresh abp.features in the UI?

Thanks!


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ips-ad

    You can achieve this using SignalR. You can take a look at how we distribute chat messages to users. You can apply a similar approach and distribute a message to related user when a feature value is changed.

  • User Avatar
    0
    ipservant created

    Okay thanks, I hoped that there is already some functionality to refresh the features, but in this case I think we will just implement a simple page refresh.