Skip to content

Commit

Permalink
feat: add reload step
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaskh3 committed Jan 4, 2025
1 parent 7221c8e commit 3aec7d0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/components/identity/reload.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class='identity-box-heading' data-test-reload-heading>Status Pending</div>
<div class='identity-box-desc' data-test-reload-desc>Reload to complete and
verify the link between Profile Service and RealDevSquad Service.</div>
<button
class='identity-box-button' type="button" {{on 'click' this.handleReload}}
>Reload</button>
9 changes: 9 additions & 0 deletions app/components/identity/reload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';

export default class ReloadComponent extends Component {
@action async handleReload(e) {
e.preventDefault();
window.location.reload();
}
}
2 changes: 2 additions & 0 deletions app/templates/identity.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
/>
{{else if (eq this.state 'step3')}}
<Identity::Step3 @setState={{this.setState}} />
{{else if (eq this.state 'reload')}}
<Identity::Reload />
{{/if}}
</div>

Expand Down

0 comments on commit 3aec7d0

Please sign in to comment.