Fixed when right clicking and selecting Manage-correct name displays (#2794)

This commit is contained in:
Todd Ortmann
2018-10-12 11:15:05 -07:00
committed by Matt Irvine
parent 5c77e752f6
commit 7f11d44130
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ export class DashboardInput extends EditorInput {
return ''; return '';
} }
let name = this.connectionProfile.serverName; let name = this.connectionProfile.connectionName ? this.connectionProfile.connectionName : this.connectionProfile.serverName;
if (this.connectionProfile.databaseName if (this.connectionProfile.databaseName
&& !this.isMasterMssql()) { && !this.isMasterMssql()) {
// Only add DB name if this is a non-default, non-master connection // Only add DB name if this is a non-default, non-master connection

View File

@@ -60,7 +60,7 @@ export class BreadcrumbService implements IBreadcrumbService {
} }
private getServerBreadcrumb(profile: ConnectionProfile): MenuItem { private getServerBreadcrumb(profile: ConnectionProfile): MenuItem {
return { label: profile.serverName, routerLink: ['server-dashboard'] }; return profile.connectionName ? { label: profile.connectionName, routerLink: ['server-dashboard'] } : { label: profile.serverName, routerLink: ['server-dashboard'] };
} }
private getDbBreadcrumb(profile: ConnectionProfile): MenuItem { private getDbBreadcrumb(profile: ConnectionProfile): MenuItem {