Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 1f20e12

Browse files
committed
Add queue type column in queues page
[#164890944]
1 parent 014bf65 commit 1f20e12

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

priv/www/js/global.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ var COLUMNS =
6666
'Message rates': [['rate-in', 'rate in', true],
6767
['rate-out', 'rate out', true]]},
6868
'queues' :
69-
{'Overview': [['features', 'Features (with policy)', true],
69+
{'Overview': [['type', 'Type', true],
70+
['features', 'Features (with policy)', true],
7071
['features_no_policy', 'Features (no policy)', false],
7172
['policy', 'Policy', false],
7273
['consumers', 'Consumer count', false],

priv/www/js/tmpl/queues.ejs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<% if (nodes_interesting) { %>
2525
<th><%= fmt_sort('Node', 'node') %></th>
2626
<% } %>
27+
<% if (show_column('queues', 'type')) { %>
28+
<th><%= fmt_sort('Type', 'type') %></th>
29+
<% } %>
2730
<% if (show_column('queues', 'features')) { %>
2831
<th>Features</th>
2932
<% } %>
@@ -111,6 +114,9 @@
111114
<% } %>
112115
</td>
113116
<% } %>
117+
<% if (show_column('queues', 'type')) { %>
118+
<td><%= fmt_string(queue.arguments['x-queue-type'], '') %></td>
119+
<% } %>
114120
<% if (show_column('queues', 'features')) { %>
115121
<td class="c">
116122
<%= fmt_features_short(queue) %>

0 commit comments

Comments
 (0)