mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-17 19:11:36 -04:00
Add context menu entries for deleting a database (#22948)
This commit is contained in:
@@ -22,6 +22,7 @@ export const ApplicationRoleTypeDisplayName: string = localize('objectManagement
|
||||
export const ApplicationRoleTypeDisplayNameInTitle: string = localize('objectManagement.ApplicationRoleTypeDisplayNameInTitle', "Application Role");
|
||||
export const DatabaseRoleTypeDisplayName: string = localize('objectManagement.DatabaseRoleTypeDisplayName', "database role");
|
||||
export const DatabaseRoleTypeDisplayNameInTitle: string = localize('objectManagement.DatabaseRoleTypeDisplayNameInTitle', "Database Role");
|
||||
export const DatabaseTypeDisplayNameInTitle: string = localize('objectManagement.DatabaseDisplayNameInTitle', "Database");
|
||||
|
||||
// Shared Strings
|
||||
export const FailedToRetrieveConnectionInfoErrorMessage: string = localize('objectManagement.noConnectionUriError', "Failed to retrieve the connection information, please reconnect and try again.")
|
||||
@@ -120,6 +121,7 @@ export function RenameObjectError(objectType: string, originalName: string, newN
|
||||
export const NameText = localize('objectManagement.nameLabel', "Name");
|
||||
export const GeneralSectionHeader = localize('objectManagement.generalSectionHeader', "General");
|
||||
export const AdvancedSectionHeader = localize('objectManagement.advancedSectionHeader', "Advanced");
|
||||
export const OptionsSectionHeader = localize('objectManagement.optionsSectionHeader', "Options");
|
||||
export const PasswordText = localize('objectManagement.passwordLabel', "Password");
|
||||
export const ConfirmPasswordText = localize('objectManagement.confirmPasswordLabel', "Confirm password");
|
||||
export const EnabledText = localize('objectManagement.enabledLabel', "Enabled");
|
||||
@@ -131,6 +133,11 @@ export const LoginNotSelectedError = localize('objectManagement.loginNotSelected
|
||||
export const MembershipSectionHeader = localize('objectManagement.membershipLabel', "Membership");
|
||||
export const MemberSectionHeader = localize('objectManagement.membersLabel', "Members");
|
||||
export const SchemaText = localize('objectManagement.schemaLabel', "Schema");
|
||||
export const DatabaseExistsError = (dbName: string) => localize('objectManagement.databaseExistsError', "Database '{0}' already exists. Choose a different database name.", dbName);
|
||||
export const CollationText = localize('objectManagement.collationLabel', "Collation");
|
||||
export const RecoveryModelText = localize('objectManagement.recoveryModelLabel', "Recovery Model");
|
||||
export const CompatibilityLevelText = localize('objectManagement.compatibilityLevelLabel', "Compatibility Level");
|
||||
export const ContainmentTypeText = localize('objectManagement.containmentTypeLabel', "Containment Type");
|
||||
|
||||
// Login
|
||||
export const BlankPasswordConfirmationText: string = localize('objectManagement.blankPasswordConfirmation', "Creating a login with a blank password is a security risk. Are you sure you want to continue?");
|
||||
@@ -203,7 +210,7 @@ export function getNodeTypeDisplayName(type: string, inTitle: boolean = false):
|
||||
case ObjectManagement.NodeType.Column:
|
||||
return ColumnTypeDisplayName;
|
||||
case ObjectManagement.NodeType.Database:
|
||||
return DatabaseTypeDisplayName;
|
||||
return inTitle ? DatabaseTypeDisplayNameInTitle : DatabaseTypeDisplayName;
|
||||
default:
|
||||
throw new Error(`Unknown node type: ${type}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user