Show More
@@ -7030,9 +7030,12 b" angular.module('appenlight.components.channelstream', [])" | |||
|
7030 | 7030 | } |
|
7031 | 7031 | }); |
|
7032 | 7032 | |
|
7033 | ChannelstreamController.$inject = ['$rootScope','userSelfPropertyResource']; | |
|
7033 | ChannelstreamController.$inject = ['$rootScope', 'stateHolder', 'userSelfPropertyResource']; | |
|
7034 | 7034 | |
|
7035 | function ChannelstreamController($rootScope, userSelfPropertyResource){ | |
|
7035 | function ChannelstreamController($rootScope, stateHolder, userSelfPropertyResource){ | |
|
7036 | if (stateHolder.AeUser.id === null){ | |
|
7037 | return | |
|
7038 | } | |
|
7036 | 7039 | userSelfPropertyResource.get({key: 'websocket'}, function (data) { |
|
7037 | 7040 | stateHolder.websocket = new ReconnectingWebSocket(this.config.ws_url + '/ws?conn_id=' + data.conn_id); |
|
7038 | 7041 | stateHolder.websocket.onopen = function (event) { |
@@ -12737,8 +12740,8 b" angular.module('appenlight.services.resources').factory('resourcesPropertyResour" | |||
|
12737 | 12740 | // # services, and proprietary license terms, please see |
|
12738 | 12741 | // # https://rhodecode.com/licenses/ |
|
12739 | 12742 | |
|
12740 |
angular.module('appenlight.services.stateHolder', []).factory('stateHolder', |
|
|
12741 |
['$timeout' |
|
|
12743 | angular.module('appenlight.services.stateHolder', []).factory('stateHolder', | |
|
12744 | ['$timeout', 'AeConfig', function ($timeout, AeConfig) { | |
|
12742 | 12745 | |
|
12743 | 12746 | var AeUser = {"user_name": null, "id": null}; |
|
12744 | 12747 | AeUser.update = function (jsonData) { |
@@ -25,9 +25,12 b" angular.module('appenlight.components.channelstream', [])" | |||
|
25 | 25 | } |
|
26 | 26 | }); |
|
27 | 27 | |
|
28 | ChannelstreamController.$inject = ['$rootScope','userSelfPropertyResource']; | |
|
28 | ChannelstreamController.$inject = ['$rootScope', 'stateHolder', 'userSelfPropertyResource']; | |
|
29 | 29 | |
|
30 | function ChannelstreamController($rootScope, userSelfPropertyResource){ | |
|
30 | function ChannelstreamController($rootScope, stateHolder, userSelfPropertyResource){ | |
|
31 | if (stateHolder.AeUser.id === null){ | |
|
32 | return | |
|
33 | } | |
|
31 | 34 | userSelfPropertyResource.get({key: 'websocket'}, function (data) { |
|
32 | 35 | stateHolder.websocket = new ReconnectingWebSocket(this.config.ws_url + '/ws?conn_id=' + data.conn_id); |
|
33 | 36 | stateHolder.websocket.onopen = function (event) { |
General Comments 0
You need to be logged in to leave comments.
Login now