diff --git a/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts b/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts index 26aa09d017..4229ebfe16 100644 --- a/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts +++ b/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts @@ -100,6 +100,12 @@ export class NotebookWizardPage extends ResourceTypePage { await setModelValues(this._model.inputComponents, this.wizard.model); } + /** + * Enabling or disabling the generate script button based on page validity. + * Since it is a shared button, we have to run this logic every time the user enters the page to reflect the current page status. + */ + this.wizard.wizardObject.generateScriptButton.enabled = this.pageObject.valid; + this.wizard.wizardObject.registerNavigationValidator((pcInfo) => { this.wizard.wizardObject.message = { text: '' };