Skip to content

Commit 03376f6

Browse files
Fixed TSLint errors and syntax comments.
1 parent f3c438e commit 03376f6

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

src/modal/alert-modal.component.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,16 @@ import { ModalService } from "./modal.service";
7070
<p>{{text}}</p>
7171
</div>
7272
<ibm-modal-footer *ngIf="buttons.length > 0">
73-
<button ibmButton="{{button.type}}" *ngFor="let button of buttons; let i = index"
74-
(click)="buttonClicked(i)" id="{{button.id}}">{{button.text}}</button>
73+
<button
74+
*ngFor="let button of buttons; let i = index"
75+
ibmButton="{{button.type}}"
76+
(click)="buttonClicked(i)"
77+
[id]="button.id">
78+
{{button.text}}
79+
</button>
7580
</ibm-modal-footer>
7681
</ibm-modal>
77-
`,
82+
`
7883
})
7984
export class AlertModalComponent implements AfterViewInit {
8085

@@ -91,7 +96,7 @@ export class AlertModalComponent implements AfterViewInit {
9196
*/
9297
constructor(
9398
private injector: Injector,
94-
private elementRef: ElementRef,
99+
private elementRef: ElementRef
95100
) {
96101
this.modalType = this.injector.get("modalType");
97102
this.headerLabel = this.injector.get("headerLabel");

src/modal/modal.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class ModalService {
9090
headerLabel: data.headerLabel,
9191
title: data.title,
9292
text: data.text,
93-
buttons: data.buttons || [],
93+
buttons: data.buttons || []
9494
}
9595
});
9696
}

src/modal/modal.stories.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ storiesOf("Modal", module)
113113
.addDecorator(
114114
moduleMetadata({
115115
declarations: [
116-
AlertModalStory,
116+
AlertModalStory
117117
],
118118
imports: [
119119
ModalModule,
@@ -144,13 +144,13 @@ storiesOf("Modal", module)
144144
text: "Delete",
145145
type: "primary",
146146
click: () => alert("Delete button clicked")
147-
}],
147+
}]
148148
}
149149
}))
150150
.addDecorator(
151151
moduleMetadata({
152152
declarations: [
153-
AlertModalStory,
153+
AlertModalStory
154154
],
155155
imports: [
156156
ModalModule,
@@ -174,7 +174,7 @@ storiesOf("Modal", module)
174174
headerLabel: text("headerLabel", "optional header label"),
175175
title: text("title", "Passive modal title"),
176176
text: text("text", "Passive modal notifications should only appear if there is an action " +
177-
"the user needs to address immediately. Passive modal notifications are persistent on screen"),
177+
"the user needs to address immediately. Passive modal notifications are persistent on screen")
178178
}
179179
}))
180180
;

0 commit comments

Comments
 (0)