mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
Adding wizard and dialog footer loading spinner (#21230)
* Adding wizard and dialog loading * Moving apis to proposed * fixing namespace * Only firing event when the value changes * Only firing when value is changed * Adding loading complete message to dialog and wizard * Registering listeners and making a new base interface for loading components * Fixing api comment * Renaming prop to loadingCompleted * old loading icon
This commit is contained in:
@@ -81,6 +81,7 @@ export interface IModalOptions {
|
||||
hasErrors?: boolean;
|
||||
hasSpinner?: boolean;
|
||||
spinnerTitle?: string;
|
||||
onSpinnerHideText?: string;
|
||||
renderHeader?: boolean;
|
||||
renderFooter?: boolean;
|
||||
dialogProperties?: IDialogProperties;
|
||||
@@ -94,7 +95,7 @@ const defaultOptions: IModalOptions = {
|
||||
hasBackButton: false,
|
||||
hasTitleIcon: false,
|
||||
hasErrors: false,
|
||||
hasSpinner: false,
|
||||
hasSpinner: true,
|
||||
renderHeader: true,
|
||||
renderFooter: true,
|
||||
dialogProperties: undefined
|
||||
@@ -638,6 +639,9 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
}
|
||||
} else {
|
||||
DOM.hide(this._spinnerElement!);
|
||||
if (this._modalOptions.onSpinnerHideText) {
|
||||
alert(this._modalOptions.onSpinnerHideText);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user