Extend the idea in #13512 to a few more tabs

This commit is contained in:
Michael Klishin 2025-03-19 15:44:10 -04:00
parent e275f77c4c
commit f2da1b5544
No known key found for this signature in database
GPG Key ID: 44BF2725475205B2
2 changed files with 4 additions and 1 deletions

View File

@ -111,6 +111,7 @@ dispatcher_add(function(sammy) {
if (ac.canAccessVhosts()) {
sammy.get('#/connections', function() {
this.title('Connections');
renderConnections();
});
sammy.get('#/connections/:name', function() {
@ -143,6 +144,7 @@ dispatcher_add(function(sammy) {
return false;
});
sammy.get('#/channels', function() {
this.title('Channels');
renderChannels();
});
sammy.get('#/channels/:name', function() {
@ -336,6 +338,7 @@ dispatcher_add(function(sammy) {
'operator_policies': '/operator-policies',
'vhosts': '/vhosts'}, 'policies');
sammy.get('#/policies/:vhost/:id', function() {
this.title('Policies');
render({'policy': '/policies/' + esc(this.params['vhost'])
+ '/' + esc(this.params['id'])},
'policy', '#/policies');

View File

@ -75,7 +75,7 @@ function dispatcher_add(fun) {
function dispatcher() {
this.use('Title');
this.setTitle('RabbitMQ - ');
this.setTitle('RabbitMQ: ');
for (var i in dispatcher_modules) {
dispatcher_modules[i](this);
}