mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
add error banner for failed migration cutover and cancel migration (#17106)
This commit is contained in:
@@ -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