Skip to content

Commit

Permalink
publish send email bug fix, disable publish button
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Nov 25, 2024
1 parent de6d2e1 commit 3a92605
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const SubmitPublicationReview = ({ callbackUrl }) => {

const [submitDisabled, setSubmitDisabled] = useState(false);

const { debug } = useSelector((state) => state.workbench.config);

const {
isApproveLoading,
isRejectLoading,
Expand Down Expand Up @@ -83,7 +85,7 @@ const SubmitPublicationReview = ({ callbackUrl }) => {
<Button
type="primary"
className={styles['submit-button']}
disabled={submitDisabled}
disabled={submitDisabled || debug}
isLoading={isApproveLoading}
onClick={handleApproveAndPublish}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def send_publication_accept_email(self, project_id):
"""
Alert project authors that their request has been accepted.
"""
user_emails = get_project_user_emails()
user_emails = get_project_user_emails(project_id)
for user_email in user_emails:
email_body = f"""
<p>Hello,</p>
Expand Down Expand Up @@ -294,7 +294,7 @@ def send_publication_reject_email(self, project_id: str, version: Optional[int],
"""
Alert project authors that their request has been rejected.
"""
user_emails = get_project_user_emails()
user_emails = get_project_user_emails(project_id)
for user_email in user_emails:
email_body = f"""
<p>Hello,</p>
Expand Down

0 comments on commit 3a92605

Please sign in to comment.