##// END OF EJS Templates
components: small order of elements change and a cleanup
ergo -
r983:c5d592d8 default
parent child Browse files
Show More
@@ -5,14 +5,14 b''
5 5
6 6 <dom-module id="rhodecode-app">
7 7 <template>
8 <rhodecode-favicon></rhodecode-favicon>
9 <rhodecode-toast id="notifications"></rhodecode-toast>
10 8 <channelstream-connection
11 9 id="channelstream-connection"
12 10 on-channelstream-listen-message="receivedMessage"
13 11 on-channelstream-connected="handleConnected"
14 12 on-channelstream-subscribed="handleSubscribed">
15 13 </channelstream-connection>
14 <rhodecode-favicon></rhodecode-favicon>
15 <rhodecode-toast id="notifications"></rhodecode-toast>
16 16 </template>
17 17 <script src="rhodecode-app.js"></script>
18 18 </dom-module>
@@ -69,7 +69,7 b' var rhodeCodeApp = Polymer({'
69 69
70 70 /** subscribes users from channels in channelstream */
71 71 subscribeToChannelTopic: function (channels) {
72 var channelstreamConnection = this.$['channelstream-connection'];
72 var channelstreamConnection = this.getChannelStreamConnection();
73 73 var toSubscribe = channelstreamConnection.calculateSubscribe(channels);
74 74 ccLog.debug('subscribeToChannelTopic', toSubscribe);
75 75 if (toSubscribe.length > 0) {
@@ -104,7 +104,7 b' var rhodeCodeApp = Polymer({'
104 104 },
105 105
106 106 handleConnected: function (event) {
107 var channelstreamConnection = this.$['channelstream-connection'];
107 var channelstreamConnection = this.getChannelStreamConnection();
108 108 channelstreamConnection.set('channelsState',
109 109 event.detail.channels_info);
110 110 channelstreamConnection.set('userState', event.detail.state);
@@ -112,7 +112,7 b' var rhodeCodeApp = Polymer({'
112 112 this.propagageChannelsState();
113 113 },
114 114 handleSubscribed: function (event) {
115 var channelstreamConnection = this.$['channelstream-connection'];
115 var channelstreamConnection = this.getChannelStreamConnection();
116 116 var channelInfo = event.detail.channels_info;
117 117 var channelKeys = Object.keys(event.detail.channels_info);
118 118 for (var i = 0; i < channelKeys.length; i++) {
@@ -124,7 +124,7 b' var rhodeCodeApp = Polymer({'
124 124 },
125 125 /** propagates channel states on topics */
126 126 propagageChannelsState: function (event) {
127 var channelstreamConnection = this.$['channelstream-connection'];
127 var channelstreamConnection = this.getChannelStreamConnection();
128 128 var channel_data = channelstreamConnection.channelsState;
129 129 var channels = channelstreamConnection.channels;
130 130 for (var i = 0; i < channels.length; i++) {
General Comments 0
You need to be logged in to leave comments. Login now