mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-16 19:11:39 -04:00
Add Detach Database option to database context menu (#23480)
This commit is contained in:
@@ -92,6 +92,13 @@ export function DeleteObjectError(objectType: string, objectName: string, error:
|
||||
}, "An error occurred while deleting the {0}: {1}. {2}", objectType, objectName, error);
|
||||
}
|
||||
|
||||
export function OpenDetachDatabaseDialogError(error: string): string {
|
||||
return localize({
|
||||
key: 'objectManagement.openDetachDatabaseDialogError',
|
||||
comment: ['{0}: error message.']
|
||||
}, "An error occurred while opening the detach database dialog. {0}", error);
|
||||
}
|
||||
|
||||
export function OpenObjectPropertiesDialogError(objectType: string, objectName: string, error: string): string {
|
||||
return localize({
|
||||
key: 'objectManagement.openObjectPropertiesDialogError',
|
||||
@@ -162,6 +169,15 @@ export const CurrentSLOText = localize('objectManagement.currentSLOLabel', "Curr
|
||||
export const EditionText = localize('objectManagement.editionLabel', "Edition");
|
||||
export const MaxSizeText = localize('objectManagement.maxSizeLabel', "Max Size");
|
||||
export const AzurePricingLinkText = localize('objectManagement.azurePricingLink', "Azure SQL Database pricing calculator");
|
||||
export const DetachDatabaseDialogTitle = (dbName: string) => localize('objectManagement.detachDatabaseDialogTitle', "Detach Database - {0} (Preview)", dbName);
|
||||
export const DetachDropConnections = localize('objectManagement.detachDropConnections', "Drop connnections");
|
||||
export const DetachUpdateStatistics = localize('objectManagement.detachUpdateStatistics', "Update statistics");
|
||||
export const DatabaseFilesLabel = localize('objectManagement.databaseFiles', "Database Files");
|
||||
export const DatabaseFileNameLabel = localize('objectManagement.databaseFileName', "Name");
|
||||
export const DatabaseFileTypeLabel = localize('objectManagement.databaseFileType', "Type");
|
||||
export const DatabaseFilePathLabel = localize('objectManagement.databaseFilePath', "Path");
|
||||
export const DatabaseFileGroupLabel = localize('objectManagement.databaseFileGroup', "File Group");
|
||||
export const DetachDatabaseOptions = localize('objectManagement.detachDatabaseOptions', "Detach Database Options");
|
||||
|
||||
// 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?");
|
||||
|
||||
Reference in New Issue
Block a user