Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
fix: improve user experience for build tool detector in import flow (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vikram-raj authored and edewit committed Jan 16, 2019
1 parent 453cf69 commit 09913d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h3>Authorized Account Information</h3>
<div class="col-xs-12" *ngIf="import">
<div class="f8launcher-provider-card-detected-runtime" *ngIf="runtimeDetectionSecVisible">
<h3>
Detected Runtime
{{ !isRuntimeDetected ? 'Detecting Runtime' : 'Detected Runtime' }}
</h3>
<div *ngIf="!isRuntimeDetected">
<i class="pficon pficon-in-progress fa-spin"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ describe('GitProviderStepComponent', () => {
const gitRepoDropdown = element.
querySelector('#gitRt');
expect(gitRepoDropdown.innerHTML).toContain('test');
component.isRuntimeDetected = true;
expect(component.completed).toBe(true);
});
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ export class GitproviderStepComponent extends LauncherStep implements AfterViewI
* @returns {boolean} True if step is completed
*/
get completed(): boolean {
if (this.import) {
return this.form.valid && this.isRuntimeDetected;
}
return this.form.valid;
}

Expand Down

0 comments on commit 09913d3

Please sign in to comment.