options.js
40 lines
| 1 | const { Tools } = JetFBActions; |
| 2 | |
| 3 | const userAccess = Tools.withPlaceholder( [ |
| 4 | { |
| 5 | value: "all", |
| 6 | label: "Any registered user" |
| 7 | }, |
| 8 | { |
| 9 | value: "upload_files", |
| 10 | label: "Any user, who allowed to upload files" |
| 11 | }, |
| 12 | { |
| 13 | value: "edit_posts", |
| 14 | label: "Any user, who allowed to edit posts" |
| 15 | }, |
| 16 | { |
| 17 | value: "any_user", |
| 18 | label: "Any user ( incl. Guest )" |
| 19 | } |
| 20 | ] ); |
| 21 | |
| 22 | const valueFormats = Tools.withPlaceholder( [ |
| 23 | { |
| 24 | "value": "id", |
| 25 | "label": "Attachment ID" |
| 26 | }, |
| 27 | { |
| 28 | "value": "url", |
| 29 | "label": "Attachment URL" |
| 30 | }, |
| 31 | { |
| 32 | "value": "both", |
| 33 | "label": "Array with attachment ID and URL" |
| 34 | } |
| 35 | ] ); |
| 36 | |
| 37 | export { |
| 38 | userAccess, |
| 39 | valueFormats |
| 40 | }; |