Skip to content

Commit

Permalink
Merged PR 39295: Remove 'define recipients' from modal title when cus…
Browse files Browse the repository at this point in the history
…tom addresses selected

## What's being changed

Modal title when custom addresses selected

## Why it's being changed

As per UAT

## How to review / test this change

- Go to settings > Flow builder and add a dotdigital mail action
- Select "Custom" addresses
- Make sure that "Define recipients" suffix removed from the modal title

Related work items: #183423
  • Loading branch information
sertlab committed Aug 15, 2022
1 parent 6dc21e7 commit 8f4c1c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ Component.register('dotdigital-flow-modal', {
description += this.$tc(`
Shopware variables differ depending on the trigger you use.
`);
description += ` <a href="https://support.dotdigital.com/hc/en-gb/articles/7101774577298" target="_blank"> ${this.$tc('Learn more')} </a>`;
description +=
` <a href="https://support.dotdigital.com/hc/en-gb/articles/7101774577298" target="_blank">
${this.$tc('Learn more')}
</a>
`;
break;
default:
description += '<br>';
Expand All @@ -45,15 +49,11 @@ Component.register('dotdigital-flow-modal', {
},

modalTitle() {
let title = this.$tc('Send email with Dotdigital');
if (this.mailRecipient === 'custom') {
title += ' - define recipients';
}
return title;
return this.$tc('Send email with Dotdigital');
},

modalSubTitle() {
return this.$tc('Automatically send your Dotdigital triggered campaign content as a transactional email. ');;
return this.$tc('Automatically send your Dotdigital triggered campaign content as a transactional email. ');
},

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Component.override('sw-flow-sequence-action', {

methods: {
getDotdigitalEmailSenderDescription(config) {
let recipient = config.recipient.type;
const recipient = config.recipient.type;
const campaignId = config.campaignId;

return this.$tc(`
Expand Down

0 comments on commit 8f4c1c4

Please sign in to comment.