mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
Fix dialog buttons (#23843)
* Fix dialog buttons * comments * Remove debug
This commit is contained in:
@@ -138,7 +138,8 @@ export class DialogModal extends Modal {
|
||||
if (this._doneButton.enabled) {
|
||||
let buttonSpinnerHandler = setTimeout(() => {
|
||||
this._doneButton.enabled = false;
|
||||
this._doneButton.element.innerHTML = ' ';
|
||||
// Temporarily set the label to empty since we're showing a spinner instead
|
||||
this._doneButton.label = ''
|
||||
this._doneButton.element.classList.add('validating');
|
||||
}, 100);
|
||||
if (await this._dialog.validateClose()) {
|
||||
|
||||
@@ -319,7 +319,8 @@ export class WizardModal extends Modal {
|
||||
let button = newPage === undefined ? this._doneButton : this._nextButton;
|
||||
let buttonSpinnerHandler = setTimeout(() => {
|
||||
button.enabled = false;
|
||||
button.element.innerHTML = ' ';
|
||||
// Temporarily set the label to empty since we're showing a spinner instead
|
||||
button.label = '';
|
||||
button.element.classList.add('validating');
|
||||
}, 100);
|
||||
let navigationValid = await this._wizard.validateNavigation(newPage);
|
||||
|
||||
Reference in New Issue
Block a user