diff --git a/src/generic_ui/scripts/ui.ts b/src/generic_ui/scripts/ui.ts index 1e3d1fc29e..b65fb32c5a 100644 --- a/src/generic_ui/scripts/ui.ts +++ b/src/generic_ui/scripts/ui.ts @@ -308,13 +308,13 @@ export class UserInterface implements ui_constants.UiApi { core.onUpdate(uproxy_core_api.Update.CLOUD_INSTALL_STATUS, (status: string) => { this.cloudInstallStatus = this.i18n_t(status); + // Don't allow user to cancel during last stage of cloud install + // because user may have already accepted cloud invitation + this.cloudInstallCancelDisabled = (status === 'CLOUD_INSTALL_STATUS_CONFIGURING_SSH') ? true : false; }); core.onUpdate(uproxy_core_api.Update.CLOUD_INSTALL_PROGRESS, (progress: number) => { this.cloudInstallProgress = progress; - // Don't allow user to cancel during last stage of cloud install - // because user may have already accepted cloud invitation - this.cloudInstallCancelDisabled = (status === 'CLOUD_INSTALL_STATUS_CONFIGURING_SSH') ? true : false; }); browserApi.on('copyPasteUrlData', this.handleCopyPasteUrlData);