@@ -64,19 +64,19 @@ class ModalStory {
6464} )
6565class AlertModalStory {
6666 @Input ( ) modalType : string ;
67- @Input ( ) headerLabel : string ;
68- @Input ( ) title : string ;
69- @Input ( ) text : string ;
67+ @Input ( ) modalLabel : string ;
68+ @Input ( ) modalTitle : string ;
69+ @Input ( ) modalContent : string ;
7070 @Input ( ) buttons : any ;
7171
7272 constructor ( private modalService : ModalService ) { }
7373
7474 openModal ( ) {
7575 this . modalService . show ( {
7676 modalType : this . modalType ,
77- headerLabel : this . headerLabel ,
78- title : this . title ,
79- text : this . text ,
77+ modalLabel : this . modalLabel ,
78+ modalTitle : this . modalTitle ,
79+ modalContent : this . modalContent ,
8080 buttons : this . buttons
8181 } ) ;
8282 }
@@ -129,18 +129,18 @@ storiesOf("Modal", module)
129129 template : `
130130 <app-alert-modal-story
131131 [modalType]="modalType"
132- [headerLabel ]="headerLabel "
133- [title ]="title "
134- [text ]="text "
132+ [modalLabel ]="modalLabel "
133+ [modalTitle ]="modalTitle "
134+ [modalContent ]="modalContent "
135135 [buttons]="buttons">
136136 </app-alert-modal-story>
137137 <ibm-modal-placeholder></ibm-modal-placeholder>
138138 ` ,
139139 props : {
140140 modalType : select ( "modalType" , [ "default" , "danger" ] , "default" ) ,
141- headerLabel : text ( "headerLabel " , "optional header label" ) ,
142- title : text ( "title " , "Delete service from application" ) ,
143- text : text ( "text " , `Are you sure you want to remove the Speech to Text service from the node-test app?` ) ,
141+ modalLabel : text ( "modalLabel " , "optional label" ) ,
142+ modalTitle : text ( "modalTitle " , "Delete service from application" ) ,
143+ modalContent : text ( "modalContent " , `Are you sure you want to remove the Speech to Text service from the node-test app?` ) ,
144144 buttons : [ {
145145 text : "Cancel" ,
146146 type : "secondary"
@@ -171,17 +171,17 @@ storiesOf("Modal", module)
171171 template : `
172172 <app-alert-modal-story
173173 [modalType]="modalType"
174- [headerLabel ]="headerLabel "
175- [title ]="title "
176- [text ]="text ">
174+ [modalLabel ]="modalLabel "
175+ [modalTitle ]="modalTitle "
176+ [modalContent ]="modalContent ">
177177 </app-alert-modal-story>
178178 <ibm-modal-placeholder></ibm-modal-placeholder>
179179 ` ,
180180 props : {
181181 modalType : select ( "modalType" , [ "default" , "danger" ] , "default" ) ,
182- headerLabel : text ( "headerLabel " , "optional header label" ) ,
183- title : text ( "title " , "Passive modal title" ) ,
184- text : text ( "text " , "Passive modal notifications should only appear if there is an action " +
182+ modalLabel : text ( "modalLabel " , "optional label" ) ,
183+ modalTitle : text ( "modalTitle " , "Passive modal title" ) ,
184+ modalContent : text ( "modalContent " , "Passive modal notifications should only appear if there is an action " +
185185 "the user needs to address immediately. Passive modal notifications are persistent on screen" )
186186 }
187187 } ) )
0 commit comments