Skip to content

Commit

Permalink
feat: changes from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sa-r-ah committed Oct 29, 2024
1 parent 01bd311 commit e664e17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libs/ui/src/lib/modal/modal.component.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { ModalComponent } from './modal.component';
export default {
title: 'Angular/Modal/Modal',
component: ModalComponent,
args: {
closeable: true,
},
} as Meta<ModalComponent>;

export const Default = {
Expand All @@ -15,7 +18,7 @@ export const Default = {
<h1>{{ testModalTitle }}</h1>
<p dataAttribute="test-content">Modal content</p>
</ng-template>
<cvi-ng-button [cviNgModal]="modal" modalTitle="Some title" closeable="true" dataAttribute="test-button">Open modal</cvi-ng-button>
<cvi-ng-button [cviNgModal]="modal" modalTitle="Some title" [closeable]="closeable" dataAttribute="test-button">Open modal</cvi-ng-button>
`,
}),
};
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/modal/modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class ModalComponent implements OnDestroy {
templateRef!: TemplateRef<any>;

title!: string;
closeable!: boolean;
closeable = true;

@Output() closed = new EventEmitter();

Expand Down

0 comments on commit e664e17

Please sign in to comment.