mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
remove SQL Login from CMS and add error messages (#5873)
This commit is contained in:
@@ -86,17 +86,9 @@
|
||||
"defaultValue": null,
|
||||
"objectType": null,
|
||||
"categoryValues": [
|
||||
{
|
||||
"displayName": "%cms.connectionOptions.authType.categoryValues.sqlLogin%",
|
||||
"name": "SqlLogin"
|
||||
},
|
||||
{
|
||||
"displayName": "%cms.connectionOptions.authType.categoryValues.integrated%",
|
||||
"name": "Integrated"
|
||||
},
|
||||
{
|
||||
"displayName": "%cms.connectionOptions.authType.categoryValues.azureMFA%",
|
||||
"name": "AzureMFA"
|
||||
}
|
||||
],
|
||||
"isRequired": true,
|
||||
|
||||
@@ -78,7 +78,7 @@ export class CmsResourceTreeNode extends CmsResourceTreeNodeBase {
|
||||
}
|
||||
}, (error) => {
|
||||
let errorText = localize('cms.errors.expandCmsFail', 'The Central Management Server {0} could not be found or is offline', this.name);
|
||||
this.appContext.apiWrapper.showErrorMessage(errorText);
|
||||
this.appContext.apiWrapper.showErrorMessage(error ? error : errorText);
|
||||
return [];
|
||||
});
|
||||
} catch {
|
||||
|
||||
@@ -143,9 +143,7 @@ export class CmsUtils {
|
||||
providerName: undefined,
|
||||
saveProfile: undefined,
|
||||
id: undefined,
|
||||
options: {
|
||||
authTypeChanged: true
|
||||
}
|
||||
options: {}
|
||||
};
|
||||
return this.openConnectionDialog([cmsProvider], initialProfile, { saveConnection: false }).then(async (connection) => {
|
||||
if (connection && connection.options) {
|
||||
|
||||
Reference in New Issue
Block a user