Skip to content

Commit bb04e20

Browse files
authored
Add support article links to email aliases section (#1034)
* Add support article links to email aliases * Update copy of email aliases support text
1 parent c364563 commit bb04e20

4 files changed

Lines changed: 30 additions & 2 deletions

File tree

assets/app/vue/defines.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ export const OTHER_APPS_SUPPORT_URL = 'https://support.tb.pro/hc/en-us/articles/
33
export const WHAT_IS_IMAP_SUPPORT_URL = 'https://support.tb.pro/hc/articles/46108465880467-What-is-IMAP';
44
export const WHAT_IS_JMAP_SUPPORT_URL = 'https://support.tb.pro/hc/articles/46109214513939-What-is-JMAP';
55
export const WHAT_IS_SMTP_SUPPORT_URL = 'https://support.tb.pro/hc/articles/46106891841043-What-is-SMTP';
6+
export const EMAIL_ALIASES_SUPPORT_URL = 'https://support.tb.pro/hc/articles/46804820453907';
7+
export const EMAIL_ALIASES_CATCH_ALL_SUPPORT_URL = 'https://support.tb.pro/hc/articles/51338950680467';
68
export const DOWNLOAD_THUNDERBIRD_DESKTOP_URL = 'https://www.thunderbird.net/thunderbird/all?utm_campaign=main&utm_medium=tb_pro&utm_source=thundermail_dashboard&utm_content=desktop_download';
79
export const DOWNLOAD_THUNDERBIRD_MOBILE_URL = 'https://play.google.com/store/apps/details?id=net.thunderbird.android&referrer=utm_campaign%3Dmain%26utm_medium%3Dtb_pro%26utm_source%3Dthundermail_dashboard%26utm_content%3Dmobile_download';
810
export const IOS_SUPPORT_URL = 'https://support.tb.pro/hc/en-us/articles/51053665815827-Setting-Up-Thundermail-on-iOS';

assets/app/vue/locales/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@
210210
"anErrorOccurredWhileChangingDisplayName": "An error occurred while changing the display name",
211211
"newDisplayName": "New display name",
212212
"displayNamePlaceholder": "Enter your display name",
213-
"displayNameRequired": "Display name is required"
213+
"displayNameRequired": "Display name is required",
214+
"emailAliasesLearnMore": "Learn more",
215+
"emailAliasesCatchAllLearnMore": "support article",
216+
"emailAliasSupportText": "{emailAliasesSupportLink} about how to setup email aliases. For catch-all aliases, check out this {emailAliasesCatchAllSupportLink}."
214217
},
215218
"customDomains": {
216219
"customDomains": "Custom Domains",

assets/app/vue/views/MailView/sections/EmailSettingsSection/components/EmailAliasForm.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { ref, computed, useTemplateRef, watch } from 'vue';
33
import { useI18n } from 'vue-i18n';
44
import { TextInput, SelectInput, PrimaryButton, LinkButton } from '@thunderbirdops/services-ui';
5+
import { EMAIL_ALIASES_SUPPORT_URL, EMAIL_ALIASES_CATCH_ALL_SUPPORT_URL } from '@/defines';
56
67
// Types
78
import { EMAIL_ALIAS_STEP } from '../types';
@@ -123,6 +124,19 @@ watch(selectedDomain, () => {
123124
</div>
124125
</form>
125126
</template>
127+
128+
<i18n-t keypath="views.mail.sections.emailSettings.emailAliasSupportText" tag="p" class="email-alias-support-text">
129+
<template #emailAliasesSupportLink>
130+
<a :href="EMAIL_ALIASES_SUPPORT_URL" target="_blank" rel="noopener noreferrer">
131+
{{ t('views.mail.sections.emailSettings.emailAliasesLearnMore') }}
132+
</a>
133+
</template>
134+
<template #emailAliasesCatchAllSupportLink>
135+
<a :href="EMAIL_ALIASES_CATCH_ALL_SUPPORT_URL" target="_blank" rel="noopener noreferrer">
136+
{{ t('views.mail.sections.emailSettings.emailAliasesCatchAllLearnMore') }}
137+
</a>
138+
</template>
139+
</i18n-t>
126140
</template>
127141

128142
<style scoped>
@@ -163,4 +177,13 @@ watch(selectedDomain, () => {
163177
align-items: center;
164178
gap: 0.5rem;
165179
}
180+
181+
.email-alias-support-text {
182+
font-size: 0.75rem;
183+
margin-block-start: 1rem;
184+
185+
a {
186+
color: var(--colour-ti-highlight);
187+
}
188+
}
166189
</style>

assets/app/vue/views/MailView/sections/EmailSettingsSection/components/EmailAliases.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const onDeleteAliasError = (error: string) => {
205205
}
206206
207207
.aliases-list {
208-
margin-block-end: 1.5rem;
208+
margin-block-end: 1rem;
209209
210210
.alias-item {
211211
display: flex;

0 commit comments

Comments
 (0)