Add Attach Database dialog (#24225)

This commit is contained in:
Cory Rivera
2023-08-30 13:38:25 -07:00
committed by GitHub
parent 9eee1384b4
commit e4abe4d167
9 changed files with 342 additions and 3 deletions

View File

@@ -47,8 +47,12 @@ export const GrantColumnHeader = localize('objectManagement.grantColumnHeader',
export const WithGrantColumnHeader = localize('objectManagement.withGrantColumnHeader', "With Grant");
export const DenyColumnHeader = localize('objectManagement.denyColumnHeader', "Deny");
export const SelectSecurablesDialogTitle = localize('objectManagement.selectSecurablesDialogTitle', "Select Securables");
export const AddFileAriaLabel = localize('objectManagement.addFileText', "Add database files");
export const RemoveFileAriaLabel = localize('objectManagement.removeFileText', "Remove database file");
export const CreateObjectLabel = localize('objectManagement.createObjectLabel', "Create");
export const ApplyUpdatesLabel = localize('objectManagement.applyUpdatesLabel', "Apply");
export const DataFileLabel = localize('objectManagement.dataFileLabel', "Data");
export const LogFileLabel = localize('objectManagement.logFileLabel', "Log");
export function ExplicitPermissionsTableLabelSelected(name: string): string { return localize('objectManagement.explicitPermissionsTableLabelSelected', "Explicit permissions for: {0}", name); }
export function EffectivePermissionsTableLabelSelected(name: string): string { return localize('objectManagement.effectivePermissionsTableLabelSelected', "Effective permissions for: {0}", name); }
@@ -109,6 +113,13 @@ export function OpenDropDatabaseDialogError(error: string): string {
}, "An error occurred while opening the drop database dialog. {0}", error);
}
export function OpenAttachDatabaseDialogError(error: string): string {
return localize({
key: 'objectManagement.openAttachDatabaseDialogError',
comment: ['{0}: error message.']
}, "An error occurred while opening the attach database dialog. {0}", error);
}
export function OpenObjectPropertiesDialogError(objectType: string, objectName: string, error: string): string {
return localize({
key: 'objectManagement.openObjectPropertiesDialogError',
@@ -190,6 +201,15 @@ export const DatabaseFilePathLabel = localize('objectManagement.databaseFilePath
export const DatabaseFileGroupLabel = localize('objectManagement.databaseFileGroup', "File Group");
export const DetachDatabaseOptions = localize('objectManagement.detachDatabaseOptions', "Detach Database Options");
export const DetachButtonLabel = localize('objectManagement.detachButtonLabel', "Detach");
export const AttachDatabaseDialogTitle = localize('objectManagement.attachDatabaseDialogTitle', "Attach Database (Preview)");
export const NoDatabaseFilesError = localize('objectManagement.doDatabaseFilesError', "No database files were specified to attach to the server.");
export const DatabasesToAttachLabel = localize('objectManagement.databasesToAttach', "Databases to Attach");
export const AssociatedFilesLabel = localize('objectManagement.associatedDatabaseFiles', "Associated Database Files");
export const MdfFileLocation = localize('objectManagement.mdfFileLocation', "MDF File Location");
export const DatabaseFilesFilterLabel = localize('objectManagement.databaseFilesFilterLabel', "Database Data Files")
export const DatabaseName = localize('objectManagement.databaseName', "DB Name");
export const AttachAsText = localize('objectManagement.attachAsText', "Attach As");
export const AttachButtonLabel = localize('objectManagement.attachButtonLabel', "Attach");
export const DropDatabaseDialogTitle = (dbName: string) => localize('objectManagement.dropDatabaseDialogTitle', "Drop Database - {0} (Preview)", dbName);
export const DropButtonLabel = localize('objectManagement.dropButtonLabel', "Drop");
export const DropDatabaseOptions = localize('objectManagement.dropDatabaseOptions', "Drop Database Options");