Skip to content

Commit ce37207

Browse files
committed
au-tab-panel tests
1 parent ebe7bd6 commit ce37207

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

au-modal/src/app/app.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ <h1>Modal Examples</h1>
6666
</ng-template>
6767

6868

69-
<au-modal [hideOnClickOutside]="true" [hideOnEscape]="true" class="auth-modal" [body]="authModalBody"
69+
<au-modal #modal [hideOnClickOutside]="false" [hideOnEscape]="false" class="auth-modal" [body]="authModalBody"
7070
*auModalOpenOnClick="[loginButton, signUpButton]">
7171

72+
<i (click)="modal.close()" class="close-icon fa fa-times"></i>
73+
7274
</au-modal>
7375

7476

au-modal/src/app/au-modal/au-modal.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<div class="modal-body" (click)="cancelClick($event)">
44

5+
<ng-content select="i"></ng-content>
56

67
<ng-container *ngIf="body else projectContent">
78

au-modal/src/app/au-modal/au-modal.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class AuModalComponent implements OnInit {
2222
constructor(private modalService: AuModalService, private eventManager: EventManager) {
2323
this.eventManager.addGlobalEventListener('window', 'keyup.esc', () => {
2424
if (this.hideOnEscape) {
25-
this.closeModal();
25+
this.close();
2626
}
2727
});
2828
}
@@ -32,11 +32,11 @@ export class AuModalComponent implements OnInit {
3232

3333
onClickOutsideModal() {
3434
if (this.hideOnClickOutside) {
35-
this.closeModal();
35+
this.close();
3636
}
3737
}
3838

39-
closeModal() {
39+
close() {
4040
this.modalService.close();
4141
}
4242

0 commit comments

Comments
 (0)