Skip to content

Commit

Permalink
Add missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JhumanJ committed Oct 22, 2024
1 parent b1273dd commit 38d3476
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
25 changes: 19 additions & 6 deletions client/components/open/integrations/EmailIntegration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,23 @@
required
label="Send To"
help="Add one email per line"
/>
<text-input
:form="integrationData"
name="settings.sender_name"
label="Sender Name"
/>
/>
<div class="flex space-x-4">
<text-input
:form="integrationData"
name="settings.sender_name"
label="Sender Name"
class="flex-1"
/>
<text-input
v-if="selfHosted"
:form="integrationData"
name="settings.sender_email"
label="Sender Email"
help="If supported by email provider - default otherwise"
class="flex-1"
/>
</div>
<MentionInput
:form="integrationData"
:mentions="form.properties"
Expand Down Expand Up @@ -77,6 +88,8 @@ const props = defineProps({
formIntegrationId: { type: Number, required: false, default: null },
})
const selfHosted = computed(() => useFeatureFlag('self_hosted'))
onBeforeMount(() => {
for (const [keyname, defaultValue] of Object.entries({
sender_name: "OpnForm",
Expand Down
2 changes: 1 addition & 1 deletion client/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const getHost = function () {
* @returns {*}
*/
export const getDomain = function (url) {
if (url.includes("localhost")) return "localhost"
if (!url || url.includes("localhost")) return "localhost"
try {
if (!url.startsWith("http")) url = "https://" + url
return new URL(url).hostname
Expand Down
2 changes: 1 addition & 1 deletion client/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineNuxtConfig({
'@pinia/nuxt',
'@vueuse/nuxt',
'@vueuse/motion/nuxt',
// '@nuxtjs/sitemap',
'@nuxtjs/sitemap',
'@nuxt/ui',
'nuxt-utm',
...process.env.NUXT_PUBLIC_GTM_CODE ? ['@zadigetvoltaire/nuxt-gtm'] : [],
Expand Down

0 comments on commit 38d3476

Please sign in to comment.