mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -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);
|
||||
|
||||
@@ -49,8 +49,6 @@
|
||||
"sql/base/browser/ui/panel/panel.ts",
|
||||
"sql/base/browser/ui/selectBox/selectBox.ts",
|
||||
"sql/base/browser/ui/panel/panel.component.ts",
|
||||
"sql/workbench/services/dialog/browser/dialogModal.ts",
|
||||
"sql/workbench/services/dialog/browser/wizardModal.ts",
|
||||
"sql/base/browser/ui/taskbar/taskbar.ts",
|
||||
"sql/workbench/contrib/notebook/browser/outputs/notebookMarkdown.ts",
|
||||
"sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts",
|
||||
|
||||
Reference in New Issue
Block a user