File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -328,10 +328,19 @@ export default class App extends Component {
328328 } ) ;
329329 }
330330
331+ onSubscriptionChange ( ) {
332+ alertRefreshPage ( ) ;
333+ loadUserSubscription ( ) ;
334+ }
335+
331336 loadUserSubscription ( ) {
332337 loadSubscriptionToApp ( this ) . then ( ( ) => this . refreshEditor ( ) ) ;
333338 }
334339
340+ alertRefreshPage ( ) {
341+ alert ( 'Please refresh the page later to display subscriptions.' ) ;
342+ }
343+
335344 updateProfileUi ( ) {
336345 if ( this . state . user ) {
337346 document . body . classList . add ( 'is-logged-in' ) ;
@@ -1677,7 +1686,7 @@ BookLibService.Borrow(id) {
16771686 }
16781687 onSupportBtnClick = { this . openSupportDeveloperModal . bind ( this ) }
16791688 version = { version }
1680- onSubscriptionChange = { this . loadUserSubscription . bind ( this ) }
1689+ onSubscriptionChange = { this . onSubscriptionChange . bind ( this ) }
16811690 loginHandler = { this . loginBtnClickHandler . bind ( this ) }
16821691 />
16831692 < SupportDeveloperModal
You can’t perform that action at this time.
0 commit comments