mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 17:23:19 -05:00
Fixed when right clicking and selecting Manage-correct name displays (#2794)
This commit is contained in:
committed by
Matt Irvine
parent
5c77e752f6
commit
7f11d44130
@@ -84,7 +84,7 @@ export class DashboardInput extends EditorInput {
|
||||
return '';
|
||||
}
|
||||
|
||||
let name = this.connectionProfile.serverName;
|
||||
let name = this.connectionProfile.connectionName ? this.connectionProfile.connectionName : this.connectionProfile.serverName;
|
||||
if (this.connectionProfile.databaseName
|
||||
&& !this.isMasterMssql()) {
|
||||
// Only add DB name if this is a non-default, non-master connection
|
||||
|
||||
@@ -60,7 +60,7 @@ export class BreadcrumbService implements IBreadcrumbService {
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user