Skip to content

Commit

Permalink
Merge pull request #339 from TAMULib/sprint17-for-tl-modal
Browse files Browse the repository at this point in the history
Modified wvre-button to wvr-button-component for tl-modal
  • Loading branch information
rmathew1011 committed Apr 13, 2021
2 parents 7cd0050 + 00d7eaa commit 0c4b8a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions projects/wvr-elements/src/lib/wvr-modal/wvr-modal.component.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
<wvr-modal-wrapper #animationRoot>

<wvre-button
<wvr-button-component
[btnTxt]="btnText"
[dispatchAction]="'Modal.openModal'"
[dispatchActionProps]="openProps"
[themeVariant]="btnThemeVariant">
</wvre-button>
</wvr-button-component>

<ng-template #modalTemplate let-modal>
<modal-content></modal-content>
</ng-template>

<modal-container #modalContent class="wvr-hidden wvr-bootstrap">
<ng-container *ngTemplateOutlet="modalHeader"></ng-container>
<ng-container *ngTemplateOutlet="modalBody"></ng-container>
<ng-container *ngTemplateOutlet="modalFooter"></ng-container>
</modal-container>

<!-- modalHeader -->
<ng-template #modalHeader>
<div class="modal-header {{additionalClasses('header')}}">
<h4 class="modal-title" id="modal-basic-title">{{title}}</h4>
</div>
</ng-template>

<!-- modalBody -->
<ng-template #modalBody>
<div class="modal-body">
<ng-content select="wvre-modal-body"></ng-content>
</div>
</ng-template>

<!-- modalFooter -->
<ng-template #modalFooter>
<div class="modal-footer {{additionalClasses('footer')}}">
<ng-content select="wvre-modal-footer"></ng-content>
</div>
</ng-template>
</ng-template>
</wvr-modal-wrapper>

0 comments on commit 0c4b8a7

Please sign in to comment.