Skip to content

Commit

Permalink
Merge pull request #478 from guardian/fp/properly-disable-create-button
Browse files Browse the repository at this point in the history
Disable Create button from being clicked (not just styling!)
  • Loading branch information
Fweddi authored Nov 11, 2024
2 parents 45ea11a + ccd325f commit 39661e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/components/stub-modal/stub-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ <h4 class="modal-title">{{ modalTitle }}</h4>
</button>
<button
type="button"
class="btn btn-primary"
class="btn btn-primary"
ng-disabled="disabled || stubForm.$invalid || warningMessages.length > 0"
ng-class="{ 'disabled': disabled || stubForm.$invalid || warningMessages.length > 0 }"
id="testing-create-in-composer"
ng-click="submit(stubForm)"
Expand Down

0 comments on commit 39661e5

Please sign in to comment.