Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 0b2ff36

Browse files
committed
showing the connected server name, rather than handle / guid for the page nav server menu trigger item
1 parent d07aa32 commit 0b2ff36

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

js/templates/pageNav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
6969
<div class="js-navProfileMenu popMenu popMenu-navBar">
7070
<div class="popMenu-navBarSubMenu popMenu-navBarSubMenu-pageNav">
7171
<a class="js-serverSubmenuTrigger">
72-
<div class="noOverflow inlineBlock" style="max-width: 171px"><%= ob.handle || ob.guid %></div>
72+
<div class="noOverflow inlineBlock" style="max-width: 171px"><%= ob.connectedServer.name %></div>
7373
<span class="pull-right txt-muted ion-arrow-right-b positionRelative" style="top: 4px"></span>
7474
</a>
7575
<a href="#userPage">

js/views/pageNavVw.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ module.exports = baseVw.extend({
256256
this.model.set('avatar_hash', this.userProfile.get('profile').avatar_hash);
257257
this.model.set('version', pjson.version);
258258
loadTemplate('./js/templates/pageNav.html', function(loadedTemplate) {
259-
self.$el.html(loadedTemplate(self.model.toJSON()));
259+
var connectedServer = app.serverConnectModal.getConnectedServer();
260+
261+
self.$el.html(loadedTemplate(
262+
__.extend(self.model.toJSON(), { connectedServer: connectedServer && connectedServer.toJSON() })
263+
));
260264

261265
self.$notifMenu = self.$('.js-navNotificationsMenu');
262266
self.$navNotif = self.$('.js-navNotifications');

0 commit comments

Comments
 (0)