Skip to content

Commit

Permalink
Merge pull request #9 from veluria/master
Browse files Browse the repository at this point in the history
Display dialog's footer even if there's only one of the buttons present
  • Loading branch information
JumBay authored Feb 1, 2019
2 parents 500a1dd + f49e55a commit 2b22049
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</section>

<footer class="modal-card-foot"
*ngIf="!config.loading && config.cancelButtonText.length > 0 && config.okButtonText.length > 0" #footer>
*ngIf="!config.loading && (config.cancelButtonText.length > 0 || config.okButtonText.length > 0)" #footer>
<button class="button column is-medium is-danger is-4" *ngIf="config.cancelButtonText"
(click)="cancelHandler()" #cancelButton>{{config.cancelButtonText}}
</button>
Expand Down

0 comments on commit 2b22049

Please sign in to comment.