Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/templates/components/public/ticket-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@
placeholder=(t 'Promotional Code')
readonly=promotionalCodeApplied
key-up=(action 'handleKeyPress')
id='promotionalCode'
}}
{{#unless promotionalCodeApplied}}
<div role="button" class="ui icon button" {{action 'applyPromotionalCode'}}>
<div role="button" class="ui icon {{if promotionalCode '' 'disabled'}} button" {{action 'applyPromotionalCode'}}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maze-runnar Is this really needed ? Validation should be taking care for empty input .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but it was still calling the server and reloading the page.

<i class="checkmark icon"></i>
</div>
{{/unless}}
Expand Down