File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ jQuery(document).ready(function () {
135
135
this . authenticationType = ko . observable ( data . authenticationType ) ;
136
136
this . userName = ko . observable ( data . userName ) ;
137
137
this . password = ko . observable ( data . password ) ;
138
+ this . emailSubject = ko . observable ( data . emailSubject ) . extend ( { notify :'always' } ) ;
138
139
139
140
// Default to REST_POST
140
141
if ( this . notificationType ( ) == "" || this . notificationType ( ) == null ) {
@@ -244,6 +245,7 @@ jQuery(document).ready(function () {
244
245
{ "text" : "REST POST (Raw Body : JSON)" , value : "templateRestPostJsonRAWBodyTrigger" } ,
245
246
{ "text" : "Mail Trigger" , value : "templateEmailTrigger" }
246
247
] ) ;
248
+
247
249
self . choosen_subscription_template = ko . observable ( ) ;
248
250
self . authenticationType = ko . observable ( ) ;
249
251
self . restPost = ko . observable ( false ) ;
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ template_vars["templateEmailTrigger"] =
91
91
"created" : "" ,
92
92
"notificationMeta" : "mymail@company.com" ,
93
93
"notificationType" : "MAIL" ,
94
+ "emailSubject" : "" ,
94
95
"restPostBodyMediaType" : "" ,
95
96
"notificationMessageKeyValues" : [
96
97
{
Original file line number Diff line number Diff line change @@ -133,6 +133,19 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
133
133
</ label >
134
134
</ div >
135
135
</ div >
136
+ <!-- Form post emailSubject field -->
137
+ < div class ="form-group " data-bind ="visible: !$root.restPost() ">
138
+ < label class ="h5 control-label font-weight-bold "> Subject</ label >
139
+ < img class ="cursor-pointer popup-large " id ="restPostMediaTypeInfo " alt ="RestPostMediaType Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
140
+ title =
141
+ "This will be the subject of the email,<br>
142
+ which will be sent as a subscription notification. <br>
143
+ Default value is set by admin in property file " />
144
+ < div >
145
+ < input id ="emailSubjectID " data-bind ="textInput:$data.emailSubject, onChange "
146
+ name ="emailSubject " placeholder ="emailSubject " class ="form-control " type ="text "/>
147
+ </ div >
148
+ </ div >
136
149
137
150
< div class ="form-group " data-bind ="visible: $root.restPost() ">
138
151
< label class ="pl-1 control-label font-weight-bold "> RestPostMediaType</ label >
@@ -152,6 +165,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
152
165
< span data-bind ="text: label "> </ span >
153
166
</ label >
154
167
</ div >
168
+
155
169
</ div >
156
170
157
171
< div class ="form-group ">
You can’t perform that action at this time.
0 commit comments