Skip to content

Commit f5e8291

Browse files
authored
Add twitter to automation platform list (#1165)
1 parent 781b00d commit f5e8291

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

frontend/src/modules/automation/components/filter-options/new-activity-filter-options.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,16 @@ const { active } = mapGetters('integration');
119119
120120
const { types } = storeToRefs(useActivityTypeStore());
121121
122-
const computedPlatformOptions = computed(() => active.value.map((item) => ({
122+
const computedPlatformOptions = computed(() => [...active.value.map((item) => ({
123123
value: item.platform,
124124
label: CrowdIntegrations.getConfig(item.platform)
125125
.name,
126-
})));
126+
})),
127+
{
128+
value: 'twitter',
129+
label: 'Twitter',
130+
},
131+
]);
127132
128133
const computedActivityTypeOptions = computed(() => {
129134
if (

frontend/src/modules/automation/components/filter-options/new-member-filter-options.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,16 @@ const form = computed({
7070
7171
const { active } = mapGetters('integration');
7272
73-
const computedPlatformOptions = computed(() => active.value.map((item) => ({
73+
const computedPlatformOptions = computed(() => [...active.value.map((item) => ({
7474
value: item.platform,
75-
label: CrowdIntegrations.getConfig(item.platform)?.name || 'Custom',
76-
})));
75+
label: CrowdIntegrations.getConfig(item.platform)
76+
.name,
77+
})),
78+
{
79+
value: 'twitter',
80+
label: 'Twitter',
81+
},
82+
]);
7783
7884
const getPlatformDetails = (platform) => CrowdIntegrations.getConfig(platform);
7985

0 commit comments

Comments
 (0)