Skip to content

Commit

Permalink
Hide the issue selector on reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Sep 25, 2023
1 parent cf3b6a9 commit 1b177cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/www/views/contact_view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ export class ContactView extends LitElement {
}
}

private reset() {
this.showIssueSelector = false;
this.step = Step.ISSUE_WIZARD;
}

private submitForm(e: CustomEvent) {
console.log('Feedback form submitted!', e);
this.exitTemplate = html`
Expand All @@ -201,7 +206,7 @@ export class ContactView extends LitElement {
<support-form
.variant=${this.variant}
.issueType=${this.selectedIssueType}
@cancel=${() => (this.step = Step.ISSUE_WIZARD)}
@cancel=${this.reset}
@submit=${this.submitForm}
></support-form>
`;
Expand Down

0 comments on commit 1b177cb

Please sign in to comment.