mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 01:28:26 -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:
@@ -93,7 +93,17 @@ export class DialogModal extends Modal {
|
||||
};
|
||||
|
||||
messageChangeHandler(this._dialog.message);
|
||||
this._dialog.onMessageChange(message => messageChangeHandler(message));
|
||||
this._register(this._dialog.onMessageChange(message => messageChangeHandler(message)));
|
||||
this._register(this._dialog.onLoadingChange((loadingState) => {
|
||||
this.spinner = loadingState;
|
||||
}));
|
||||
this._register(this._dialog.onLoadingTextChange((loadingText) => {
|
||||
this._modalOptions.spinnerTitle = loadingText;
|
||||
|
||||
}));
|
||||
this._register(this._dialog.onLoadingCompletedTextChange((loadingCompletedText) => {
|
||||
this._modalOptions.onSpinnerHideText = loadingCompletedText;
|
||||
}));
|
||||
}
|
||||
|
||||
private addDialogButton(button: DialogButton, onSelect: () => void = () => undefined, registerClickEvent: boolean = true, requireDialogValid: boolean = false): Button {
|
||||
|
||||
Reference in New Issue
Block a user