# HG changeset patch # User Marcin Lulek # Date 2017-03-01 00:39:52 # Node ID 211476f5be2f61aeed49f77f7aae24a9e5fe988e # Parent 9278d8525c892c7c330d5db6de319c38908cb255 notifications: different approach with fixed/standard container diff --git a/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.html b/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.html --- a/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.html +++ b/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.html @@ -12,7 +12,6 @@ on-channelstream-subscribed="handleSubscribed"> - diff --git a/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.js b/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.js --- a/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.js +++ b/rhodecode/public/js/src/components/rhodecode-app/rhodecode-app.js @@ -25,7 +25,11 @@ var rhodeCodeApp = Polymer({ }, handleNotifications: function (data) { - this.$['notifications'].handleNotification(data); + var elem = document.getElementById('notifications'); + if(elem){ + elem.handleNotification(data); + } + }, faviconUpdate: function (data) { 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 @@ -5,25 +5,19 @@