mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
add error banner for failed migration cutover and cancel migration (#17106)
This commit is contained in:
@@ -547,7 +547,7 @@ export interface TargetLocation {
|
||||
|
||||
export interface BackupFileInfo {
|
||||
fileName: string;
|
||||
status: 'Arrived' | 'Uploading' | 'Uploaded' | 'Restoring' | 'Restored' | 'Cancelled' | 'Ignored';
|
||||
status: 'Arrived' | 'Uploading' | 'Uploaded' | 'Restoring' | 'Restored' | 'Canceled' | 'Ignored';
|
||||
totalSize: number;
|
||||
dataRead: number;
|
||||
dataWritten: number;
|
||||
|
||||
@@ -230,6 +230,14 @@ export function get12HourTime(date: Date | undefined): string {
|
||||
return (date ? date : new Date()).toLocaleTimeString([], localeTimeStringOptions);
|
||||
}
|
||||
|
||||
export function displayDialogErrorMessage(dialog: window.Dialog, text: string, error: Error): void {
|
||||
dialog.message = {
|
||||
level: window.MessageLevel.Error,
|
||||
text: text,
|
||||
description: error.message,
|
||||
};
|
||||
}
|
||||
|
||||
export function clearDialogMessage(dialog: window.Dialog): void {
|
||||
dialog.message = {
|
||||
text: ''
|
||||
|
||||
Reference in New Issue
Block a user