# HG changeset patch # User Marcin Lulek # Date 2016-08-23 16:22:07 # Node ID cea437a23de46033e54a048a70378239d73854cd # Parent 04c2aa4888d3bef86e54435fee953fca4abd39a8 notifications: replace toggle button with actual toggle element - fixes #4171 diff --git a/rhodecode/controllers/admin/my_account.py b/rhodecode/controllers/admin/my_account.py --- a/rhodecode/controllers/admin/my_account.py +++ b/rhodecode/controllers/admin/my_account.py @@ -368,4 +368,4 @@ class MyAccountController(BaseController user_data['notification_status'] = not status user.user_data = user_data Session().commit() - return redirect(url('my_account_notifications')) + return json.dumps(user_data['notification_status']) diff --git a/rhodecode/public/js/src/components/shared-components.html b/rhodecode/public/js/src/components/shared-components.html --- a/rhodecode/public/js/src/components/shared-components.html +++ b/rhodecode/public/js/src/components/shared-components.html @@ -2,3 +2,5 @@ + + diff --git a/rhodecode/templates/admin/my_account/my_account_notifications.html b/rhodecode/templates/admin/my_account/my_account_notifications.html --- a/rhodecode/templates/admin/my_account/my_account_notifications.html +++ b/rhodecode/templates/admin/my_account/my_account_notifications.html @@ -1,26 +1,65 @@ +