mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
move system dbs to bottom of the list in update project from db dialog (#18791)
This commit is contained in:
@@ -234,6 +234,10 @@ export class UpdateProjectFromDatabaseDialog {
|
||||
let values = [];
|
||||
try {
|
||||
values = await this.getDatabaseValues(connectionProfile.connectionId);
|
||||
|
||||
// move system dbs to the bottom of the list so it's easier to find user dbs
|
||||
const systemDbs = values.filter(db => constants.systemDbs.includes(db));
|
||||
values = values.filter(db => !constants.systemDbs.includes(db)).concat(systemDbs);
|
||||
} catch (e) {
|
||||
// if the user doesn't have access to master, just set the database of the connection profile
|
||||
values = [connectionProfile.databaseName];
|
||||
|
||||
Reference in New Issue
Block a user