Skip to content

Commit 5e9ee84

Browse files
committed
Added action
1 parent 0fd9cfd commit 5e9ee84

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

component.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
"title": "Read CSV file from URL",
88
"type": "polling",
99
"fields": {
10-
"url" : {
10+
"url": {
1111
"label": "CSV URL",
12-
"required": false,
13-
"note" : "Please leave this field blank if you want to use <strong>attachments</strong> from the incoming message.",
12+
"required": true,
13+
"placeholder": "http://my-url.com/foo.csv",
14+
"note": "We will fetch this URL and parse it as CSV file",
1415
"viewClass": "TextFieldWithNoteView"
1516
},
1617
"reader": {
@@ -19,8 +20,21 @@
1920
},
2021
"metadata": {
2122
"out": {}
23+
}
24+
}
25+
},
26+
"actions" : {
27+
"read_action": {
28+
"main": "./lib/read.js",
29+
"title": "Read CSV file from incoming message attachment",
30+
"fields": {
31+
"reader": {
32+
"viewClass": "CSVReadView"
33+
}
2234
},
23-
"emitter": true
35+
"metadata": {
36+
"out": {}
37+
}
2438
}
2539
}
2640
}

0 commit comments

Comments
 (0)