mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix servername in breadcrumb service and dashboard tab (#24150)
This commit is contained in:
@@ -85,9 +85,9 @@ export class DashboardInput extends EditorInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let name = this.connectionProfile.connectionName ? this.connectionProfile.connectionName : this.connectionProfile.serverName
|
let name = this.connectionProfile.connectionName ? this.connectionProfile.connectionName : this.connectionProfile.serverName
|
||||||
if (this.connectionProfile.databaseName
|
if (!this.connectionProfile.connectionName && 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 and if there is no user set profile name.
|
||||||
name = name + ':' + this.connectionProfile.databaseName;
|
name = name + ':' + this.connectionProfile.databaseName;
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export class BreadcrumbService implements IBreadcrumbService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private getServerBreadcrumb(profile: ConnectionProfile): MenuItem {
|
private getServerBreadcrumb(profile: ConnectionProfile): MenuItem {
|
||||||
return profile.connectionName ? { label: profile.connectionName, routerLink: ['server-dashboard'] } : { label: profile.serverName, routerLink: ['server-dashboard'] };
|
return { label: profile.serverName, routerLink: ['server-dashboard'] };
|
||||||
}
|
}
|
||||||
|
|
||||||
private getDbBreadcrumb(profile: ConnectionProfile): MenuItem {
|
private getDbBreadcrumb(profile: ConnectionProfile): MenuItem {
|
||||||
|
|||||||
Reference in New Issue
Block a user