Skip to content

Commit

Permalink
Disable next button on Python wizard creation (#18069)
Browse files Browse the repository at this point in the history
* disable next button on wizard creation

* check pages registered in nav validator
  • Loading branch information
lucyzhang929 authored Jan 13, 2022
1 parent 9d9ee7e commit cfa6fec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export class ConfigurePythonWizard {
});

this._wizard.registerNavigationValidator(async (info) => {
// The pages have not been registered yet
if (pages.size === 0) {
return false;
}
let lastPage = pages.get(info.lastPage);
let newPage = pages.get(info.newPage);

Expand Down

0 comments on commit cfa6fec

Please sign in to comment.