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

Ask before deregistering #108

Open
samarsault opened this issue Sep 2, 2020 · 3 comments
Open

Ask before deregistering #108

samarsault opened this issue Sep 2, 2020 · 3 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@samarsault
Copy link
Owner

Confirm before deregistering from a course

@Devanshu24
Copy link
Collaborator

@Rishi860 Maybe you could do this along with the access update warning
Not necessary, I just felt it will fall easily into what you're already doing :)

@samarsault samarsault added the good first issue Good for newcomers label Mar 7, 2021
@kdarsh17
Copy link
Contributor

I am taking it up

@samarsault
Copy link
Owner Author

Thanks @kdarsh17.

  • First step is to setup the repo on your system. Try following the README.md, let us know if you have any doubts.
  • Deregistering a user is accessed at the url /admin/umgt/<student id>, which corresponds to the EditUser.vue component.
  • The button, in HTML is in here
    <template slot="action">
    <button class="error" @click="dereg(course.name)">
    Deregister
    </button>
    </template>
  • In the dereg method, we should show a dialog (confirm() would also do) before performing the actual thing, i.e. in here
    methods: {
    async dereg(courseName) {
    await axios.post("/admin/super/deregister", {
    email: this.user.email,
    course: courseName,
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants