mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51: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 = [];
|
let values = [];
|
||||||
try {
|
try {
|
||||||
values = await this.getDatabaseValues(connectionProfile.connectionId);
|
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) {
|
} catch (e) {
|
||||||
// if the user doesn't have access to master, just set the database of the connection profile
|
// if the user doesn't have access to master, just set the database of the connection profile
|
||||||
values = [connectionProfile.databaseName];
|
values = [connectionProfile.databaseName];
|
||||||
|
|||||||
Reference in New Issue
Block a user