File tree Expand file tree Collapse file tree
OpenFlowNodeRED/src/nodered/nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 < label > < i class = "fa fa-tag" > </ i > Include player ids</ label >
4444 < input type = "text" id = "node-input-include_player_ids" placeholder = "Segments diveded by comma" >
4545 </ div >
46+ < div class = "form-row" >
47+ < label > < i class = "fa fa-tag" > </ i > CustomURL</ label >
48+ < input type = "text" id = "node-input-customurl" placeholder = "Custom URL" >
49+ </ div >
4650 < div class = "form-row" >
4751 < label > < i class = "fa fa-tag" > </ i > URL</ label >
4852 < input type = "text" id = "node-input-url" placeholder = "Deeplink URL" >
4953 </ div >
50-
5154 < div class = "form-row" style = "margin-bottom: 0px;" >
5255 < label for = "node-input-contents" > < i class = "fa fa-wrench" > </ i > EXAMPLE! payload</ label >
5356 < input type = "hidden" id = "node-input-contents" autofocus = "autofocus" >
7679 excluded_segments : { value : "" , required : false } ,
7780 include_player_ids : { value : "" , required : false } ,
7881 url : { value : "" , required : false } ,
82+ customurl : { value : "" , required : false } ,
7983 contents : {
8084 value :
8185 `{ "en": "hi mom" }` , required : true
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export interface Icreate_notification {
2929 config : any ;
3030 contents : string ;
3131 url : string ;
32+ customurl : string ;
3233 included_segments : string | string [ ] ;
3334 excluded_segments : string | string [ ] ;
3435 include_player_ids : string | string [ ] ;
@@ -62,6 +63,8 @@ export class create_notification {
6263
6364 if ( ! NoderedUtil . IsNullEmpty ( msg . payload ) ) { this . config . contents = msg . payload ; }
6465 if ( ! NoderedUtil . IsNullEmpty ( msg . url ) ) { this . config . url = msg . url ; }
66+ if ( ! NoderedUtil . IsNullEmpty ( msg . customurl ) ) { this . config . customurl = msg . customurl ; }
67+
6568 if ( ! NoderedUtil . IsNullEmpty ( msg . included_segments ) ) { this . config . included_segments = msg . included_segments ; }
6669 if ( ! NoderedUtil . IsNullEmpty ( msg . excluded_segments ) ) { this . config . excluded_segments = msg . excluded_segments ; }
6770 if ( ! NoderedUtil . IsNullEmpty ( msg . include_player_ids ) ) { this . config . include_player_ids = msg . include_player_ids ; }
@@ -75,7 +78,7 @@ export class create_notification {
7578 'included_segments' : Array . isArray ( this . config . included_segments ) ? this . config . included_segments : [ this . config . included_segments ] ,
7679 'excluded_segments' : Array . isArray ( this . config . excluded_segments ) ? this . config . excluded_segments : [ this . config . excluded_segments ] ,
7780 'include_player_ids' : Array . isArray ( this . config . include_player_ids ) ? this . config . include_player_ids : [ this . config . include_player_ids ] ,
78- 'data' : { 'URL ' : this . config . url } ,
81+ 'data' : { 'customurl ' : this . config . customurl } ,
7982 'url' : this . config . url
8083 } ;
8184
Original file line number Diff line number Diff line change 1- 0.0.329
1+ 0.0.330
You can’t perform that action at this time.
0 commit comments