Skip to content
Snippets Groups Projects
Commit b765ecf9 authored by Aurélien Warnon's avatar Aurélien Warnon
Browse files

[FIX] website_slides: correctly close subscription modal when saving


This commit fixes a small issue with the modal displayed when the user wants to
manage his subscription to a course.

When pressing the "Save" button, if no modification was made, the modal would
not close and nothing would happen (which seems strange on a user POV).
Now the modal correctly destroys itself and closes.

Task 2363028

closes odoo/odoo#60504

X-original-commit: 32d0b108
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 3ba2816f
Branches
Tags
No related merge requests found
......@@ -105,6 +105,7 @@ var SlideUnsubscribeDialog = Dialog.extend({
_onClickSubscriptionSubmit: function () {
if (this.isFollower === this.getSubscriptionState()) {
this.destroy();
return;
}
this._rpc({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment