# HG changeset patch # User Marcin Lulek # Date 2016-09-09 12:48:05 # Node ID 6acda5b83c0671d54c5c454b0cd8a5b05cbcf0fe # Parent 5a8d261e38637892b0b8e9b8834548bbe9a32bbd notifications: clear out toasts after animation, remove ink animation from the button diff --git a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html --- a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html +++ b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html @@ -6,7 +6,13 @@ - +
- {{_gettext('Close now')}} +
diff --git a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.js b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.js --- a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.js +++ b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.js @@ -20,6 +20,8 @@ Polymer({ }, dismissNotifications: function(){ this.$['p-toast'].close(); + }, + handleClosed: function(){ this.splice('toasts', 0); }, open: function(){