Merge pull request #2317 from Budibase/fix/make-feedbackform-comment-optional

Makes the NPS Feedback Form options and comments optional
This commit is contained in:
Kevin Åberg Kultalahti 2021-08-10 12:42:06 +02:00 committed by GitHub
commit 5450d26962
1 changed files with 4 additions and 10 deletions

View File

@ -31,8 +31,8 @@
// Data to send off
let rating
let improvements
let comment
let improvements = ""
let comment = ""
function selectNumber(n) {
rating = n
@ -106,11 +106,7 @@
<Detail size="S">STEP 2 OF 3</Detail>
<ButtonGroup>
<Button secondary on:click={() => (step -= 1)}>Previous</Button>
<Button
disabled={!improvements}
primary
on:click={() => (step += 1)}>Next</Button
>
<Button primary on:click={() => (step += 1)}>Next</Button>
</ButtonGroup>
</div>
{:else}
@ -121,9 +117,7 @@
<Detail size="S">STEP 3 OF 3</Detail>
<ButtonGroup>
<Button secondary on:click={() => (step -= 1)}>Previous</Button>
<Button disabled={!comment} cta on:click={submitFeedback}
>Complete</Button
>
<Button cta on:click={submitFeedback}>Complete</Button>
</ButtonGroup>
</div>
{/if}