##// END OF EJS Templates
svn-support: Disable all mako default filters. #4244...
svn-support: Disable all mako default filters. #4244 Mako default filter may change the value in a way that breaks the apache configuration. E.g. when applying HTML escaping.

File last commit:

r787:048ecbf3 default
r855:2c5a0bce default
Show More
rhodecode-toast.js
38 lines | 956 B | application/javascript | JavascriptLexer
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();
},
handleClosed: function(){
this.splice('toasts', 0);
},
open: function(){
this.$['p-toast'].open();
},
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();
},
_gettext: _gettext
});