Skip to content

Commit db3aa9c

Browse files
committed
Fixing typo for cancel cloud
1 parent 1499d1b commit db3aa9c

File tree

1 file changed

+3
-3
lines changed
  • src/generic_ui/scripts

1 file changed

+3
-3
lines changed

src/generic_ui/scripts/ui.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ export class UserInterface implements ui_constants.UiApi {
308308

309309
core.onUpdate(uproxy_core_api.Update.CLOUD_INSTALL_STATUS, (status: string) => {
310310
this.cloudInstallStatus = this.i18n_t(status);
311+
// Don't allow user to cancel during last stage of cloud install
312+
// because user may have already accepted cloud invitation
313+
this.cloudInstallCancelDisabled = (status === 'CLOUD_INSTALL_STATUS_CONFIGURING_SSH') ? true : false;
311314
});
312315

313316
core.onUpdate(uproxy_core_api.Update.CLOUD_INSTALL_PROGRESS, (progress: number) => {
314317
this.cloudInstallProgress = progress;
315-
// Don't allow user to cancel during last stage of cloud install
316-
// because user may have already accepted cloud invitation
317-
this.cloudInstallCancelDisabled = (status === 'CLOUD_INSTALL_STATUS_CONFIGURING_SSH') ? true : false;
318318
});
319319

320320
browserApi.on('copyPasteUrlData', this.handleCopyPasteUrlData);

0 commit comments

Comments
 (0)