Skip to content

Commit

Permalink
Add twitter to automation platform list (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom authored Jul 24, 2023
1 parent 781b00d commit f5e8291
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,16 @@ const { active } = mapGetters('integration');
const { types } = storeToRefs(useActivityTypeStore());
const computedPlatformOptions = computed(() => active.value.map((item) => ({
const computedPlatformOptions = computed(() => [...active.value.map((item) => ({
value: item.platform,
label: CrowdIntegrations.getConfig(item.platform)
.name,
})));
})),
{
value: 'twitter',
label: 'Twitter',
},
]);
const computedActivityTypeOptions = computed(() => {
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,16 @@ const form = computed({
const { active } = mapGetters('integration');
const computedPlatformOptions = computed(() => active.value.map((item) => ({
const computedPlatformOptions = computed(() => [...active.value.map((item) => ({
value: item.platform,
label: CrowdIntegrations.getConfig(item.platform)?.name || 'Custom',
})));
label: CrowdIntegrations.getConfig(item.platform)
.name,
})),
{
value: 'twitter',
label: 'Twitter',
},
]);
const getPlatformDetails = (platform) => CrowdIntegrations.getConfig(platform);
Expand Down

0 comments on commit f5e8291

Please sign in to comment.