Skip to content

Commit cb9105e

Browse files
MarcialRosalesmergify[bot]
authored andcommitted
Fix member variable for datamodel in Display
(cherry picked from commit da43ccf) (cherry picked from commit 3018405) # Conflicts: # deps/rabbitmq_management/priv/www/js/tmpl/queues.ejs
1 parent 6c89679 commit cb9105e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

deps/rabbitmq_management/priv/www/js/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ function DisplayControl() {
691691
this.vhosts = false
692692
this.rabbitmqVersions = false
693693

694-
this.update = function(overview, ui_data_model) {
694+
this.update = function(overview, ui_data_model) {
695695
this.nodes = ac.canListNodes() && ui_data_model.nodes.length > 1
696696
this.vhosts = ac.canAccessVhosts()
697697
this.rabbitmqVersions = false

deps/rabbitmq_management/priv/www/js/tmpl/queues.ejs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,13 @@
284284
</tr>
285285
<% } %>
286286
<%
287+
<<<<<<< HEAD
287288
if (nodes_interesting) {
288289
var nodes = JSON.parse(sync_get('/nodes'));
290+
=======
291+
if (ac.canListNodes()) {
292+
var nodes = display.data.nodes
293+
>>>>>>> 30184053c9 (Fix member variable for datamodel in Display)
289294
%>
290295
<tr>
291296
<th><label>Node:</label></th>

0 commit comments

Comments
 (0)