Skip to content

Commit b3aa956

Browse files
committed
some adjusts
1 parent f57484e commit b3aa956

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
export const RETENTION_DAYS_OPTIONS = [
2+
{
3+
label: "1",
4+
value: 1,
5+
},
6+
{
7+
label: "3",
8+
value: 3,
9+
},
10+
{
11+
label: "5",
12+
value: 5,
13+
},
14+
{
15+
label: "7",
16+
value: 7,
17+
},
18+
{
19+
label: "10",
20+
value: 10,
21+
},
22+
{
23+
label: "15",
24+
value: 15,
25+
},
26+
{
27+
label: "30",
28+
value: 30,
29+
},
30+
];

components/moaform/sources/new-submission-instant/new-submission-instant.mjs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import crypto from "crypto";
2+
import { RETENTION_DAYS_OPTIONS } from "../../common/constants.mjs";
23
import moaform from "../../moaform.app.mjs";
34
import sampleEmit from "./test-event.mjs";
45

@@ -26,15 +27,7 @@ export default {
2627
type: "integer",
2728
label: "Retention Days",
2829
description: "Resend restriction days",
29-
options: [
30-
{ label: "1", value: 1 },
31-
{ label: "3", value: 3 },
32-
{ label: "5", value: 5 },
33-
{ label: "7", value: 7 },
34-
{ label: "10", value: 10 },
35-
{ label: "15", value: 15 },
36-
{ label: "30", value: 30 },
37-
],
30+
options: RETENTION_DAYS_OPTIONS,
3831
optional: true,
3932
},
4033
secret: {

0 commit comments

Comments
 (0)