From c024b43629a953e544b67cdc51484bf1b04c94b2 Mon Sep 17 00:00:00 2001 From: Alexandre Magno Date: Mon, 25 Nov 2024 14:46:28 +0100 Subject: [PATCH] open existing offers --- frontend/src/components/profile/profile.js | 5 +++++ .../src/components/task/offers/task-offer-drawer.tsx | 4 ++-- frontend/src/components/task/task.js | 10 ++++++---- frontend/src/main/routes.js | 2 +- locales/en.json | 2 +- modules/mail/assign.js | 6 +----- 6 files changed, 16 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/profile/profile.js b/frontend/src/components/profile/profile.js index c5d474df..7d039f84 100644 --- a/frontend/src/components/profile/profile.js +++ b/frontend/src/components/profile/profile.js @@ -437,6 +437,11 @@ class Profile extends Component { path='/profile/task/:id' component={ (props) => } /> + } + /> ( - + diff --git a/locales/en.json b/locales/en.json index 76db5eff..bf99c6d1 100644 --- a/locales/en.json +++ b/locales/en.json @@ -22,7 +22,7 @@ "mail.assign.owner.main": "{{name}} is interested in working on the issue {{title}}.", "mail.assign.owner.suggest": "

Suggested bounty: ${{value}}

Suggested date: {{suggestedDate}}

For learning purposes: {{learn}}

Comment: {{comment}}

", "mail.assign.owner.sec": "You can accept or reject this proposal.", - "mail.assign.owner.button.primary": "Accept work and assign them to this issue", + "mail.assign.owner.button.primary": "Check offer", "mail.messageInterested.subject": "You received a message about an issue you're interested in on Gitpay", "mail.messageInterested.intro": "{{name}} wrote about the issue {{title}} you're interested in on Gitpay:", "mail.messageInterested.message": "{{message}}", diff --git a/modules/mail/assign.js b/modules/mail/assign.js index 008a67bf..11bfe9c2 100644 --- a/modules/mail/assign.js +++ b/modules/mail/assign.js @@ -48,13 +48,9 @@ if (constants.canSendEmail) {

${i18n.__('mail.assign.owner.sec')}

${Signatures.buttons(language, { primary: { - label: 'mail.assign.owner.button.primary', + label: 'mail.assign.owner.button.offer', title: task.title, url: `${process.env.FRONTEND_HOST}/#/task/${task.id}/offers` - }, - secondary: { - label: 'mail.assign.owner.button.secondary', - url: `${process.env.FRONTEND_HOST}/#/task/${task.id}/interested` } })}`) },