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

💻 Remove modal for make teacher as admin #5631

Merged
merged 17 commits into from
Jun 29, 2024
Merged

💻 Remove modal for make teacher as admin #5631

merged 17 commits into from
Jun 29, 2024

Conversation

Annelein
Copy link
Contributor

@Annelein Annelein commented Jun 26, 2024

As requested by @Felienne : remove modal for accepting teacher requests and remove reloading the page every time

@Annelein Annelein mentioned this pull request Jun 26, 2024
website/admin.py Outdated
@@ -173,58 +174,48 @@ def get_admin_achievements_page(self, user):
page_title=gettext("title_admin"),
)

@route("/mark-as-teacher", methods=["POST"])
def mark_as_teacher(self):
@route("/mark-as-teacher/<username_teacher>", methods=["GET"])
Copy link
Member

Choose a reason for hiding this comment

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

I think the problem it's happening because these calls were switched from GET to POST. And, I would prefer these calls to be POST, because we are not getting any data from the server, just modifying, which is exactly what post calls are meant for.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed it back to post!

static/js/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

mergify bot commented Jun 29, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 4ca4939 into main Jun 29, 2024
12 checks passed
@mergify mergify bot deleted the admin-autosave branch June 29, 2024 00:54
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