Skip to content

Commit 38d3476

Browse files
committed
Add missing changes
1 parent b1273dd commit 38d3476

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

client/components/open/integrations/EmailIntegration.vue

+19-6
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,23 @@
2222
required
2323
label="Send To"
2424
help="Add one email per line"
25-
/>
26-
<text-input
27-
:form="integrationData"
28-
name="settings.sender_name"
29-
label="Sender Name"
30-
/>
25+
/>
26+
<div class="flex space-x-4">
27+
<text-input
28+
:form="integrationData"
29+
name="settings.sender_name"
30+
label="Sender Name"
31+
class="flex-1"
32+
/>
33+
<text-input
34+
v-if="selfHosted"
35+
:form="integrationData"
36+
name="settings.sender_email"
37+
label="Sender Email"
38+
help="If supported by email provider - default otherwise"
39+
class="flex-1"
40+
/>
41+
</div>
3142
<MentionInput
3243
:form="integrationData"
3344
:mentions="form.properties"
@@ -77,6 +88,8 @@ const props = defineProps({
7788
formIntegrationId: { type: Number, required: false, default: null },
7889
})
7990
91+
const selfHosted = computed(() => useFeatureFlag('self_hosted'))
92+
8093
onBeforeMount(() => {
8194
for (const [keyname, defaultValue] of Object.entries({
8295
sender_name: "OpnForm",

client/lib/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const getHost = function () {
8888
* @returns {*}
8989
*/
9090
export const getDomain = function (url) {
91-
if (url.includes("localhost")) return "localhost"
91+
if (!url || url.includes("localhost")) return "localhost"
9292
try {
9393
if (!url.startsWith("http")) url = "https://" + url
9494
return new URL(url).hostname

client/nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineNuxtConfig({
1212
'@pinia/nuxt',
1313
'@vueuse/nuxt',
1414
'@vueuse/motion/nuxt',
15-
// '@nuxtjs/sitemap',
15+
'@nuxtjs/sitemap',
1616
'@nuxt/ui',
1717
'nuxt-utm',
1818
...process.env.NUXT_PUBLIC_GTM_CODE ? ['@zadigetvoltaire/nuxt-gtm'] : [],

0 commit comments

Comments
 (0)