File tree Expand file tree Collapse file tree
plugins/push/frontend/public/javascripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 731731 }
732732 this . updatePlatformsBasedOnAppConfig ( ) ;
733733 this . estimateIfNecessary ( ) ;
734- this . setEnabledUsers ( this . $store . state . countlyPushNotificationDashboard . enabledUsers ) ;
734+
735+ if ( this . $store . state . countlyPushNotificationDashboard ) {
736+ this . setEnabledUsers ( this . $store . state . countlyPushNotificationDashboard . enabledUsers ) ;
737+ }
738+ else {
739+ var self = this ;
740+
741+ countlyPushNotification . service . fetchDashboard ( )
742+ . then ( function ( response ) {
743+ self . setEnabledUsers ( response . enabledUsers ) ;
744+ } )
745+ . catch ( function ( error ) {
746+ console . error ( error ) ;
747+ } ) ;
748+ }
735749 } ,
736750 addButton : function ( ) {
737751 this . pushNotificationUnderEdit . message [ this . activeLocalization ] . buttons . push ( { label : "" , url : "" } ) ;
29062920 app . configurationsView . registerLabel ( "push.proxyport" , "push-notification.proxy-port" ) ;
29072921 app . configurationsView . registerLabel ( "push.proxyuser" , "push-notification.proxy-user" ) ;
29082922 }
2909- } ( ) ) ;
2923+ } ( ) ) ;
You can’t perform that action at this time.
0 commit comments