Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a modal with project rejection #554 #574

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

BobLamarley
Copy link
Contributor

@BobLamarley BobLamarley commented Dec 24, 2024

This PR resolve this issue : #554

@mboudet mboudet marked this pull request as draft December 24, 2024 11:40
@BobLamarley BobLamarley marked this pull request as ready for review December 26, 2024 08:47
@BobLamarley
Copy link
Contributor Author

@mboudet this one can be reviewed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason to commit this file


openRejectModal(project: any, user_uid: any) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any point in having user_uid? I'm not sure you actually use it anywhere?

Comment on lines +338 to +347
if(this.rejectionReason)
this.userService.notify(this.currentProject.owner, {
subject: `: Project ${this.currentProject.id} creation rejected`,
message: `The reason why your project was not accepted by one of our admins is the following: ${this.rejectionReason}`,
send_copy_to_support: this.sendCopyToSupport
}).subscribe(
err => {
console.log(('failed to send mail'));
}
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this part should be done in one block in the 'reject_project' call (in the backend), instead of doing two separate api calls.

}
res.end();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not need for this line, the res.send() above is sufficient

rsiminel added a commit to rsiminel/genouestaccountmanager that referenced this pull request Jan 29, 2025
@rsiminel rsiminel mentioned this pull request Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants