##// END OF EJS Templates
svn-support: Retrieve repository base path via helper method.
svn-support: Retrieve repository base path via helper method.

File last commit:

r787:048ecbf3 default
r833:8b391ee2 default
Show More
rhodecode-toast.js
38 lines | 956 B | application/javascript | JavascriptLexer
components: reorganize build pipeline to have nice separation of html/js/css
r703 Polymer({
is: 'rhodecode-toast',
properties: {
toasts: {
type: Array,
value: function(){
return []
}
}
},
observers: [
'_changedToasts(toasts.splices)'
],
_changedToasts: function(newValue, oldValue){
this.$['p-toast'].notifyResize();
},
dismissNotifications: function(){
this.$['p-toast'].close();
notifications: clear out toasts after animation, remove ink animation from the button
r778 },
handleClosed: function(){
components: reorganize build pipeline to have nice separation of html/js/css
r703 this.splice('toasts', 0);
},
open: function(){
this.$['p-toast'].open();
},
frontend: introduce rhodecode-app for more complex cross element wiring
r787 handleNotification: function(data){
if (!templateContext.rhodecode_user.notification_status && !data.message.force) {
// do not act if notifications are disabled
return
}
this.push('toasts',{
level: data.message.level,
message: data.message.message
});
this.open();
},
components: reorganize build pipeline to have nice separation of html/js/css
r703 _gettext: _gettext
});