##// END OF EJS Templates
gists: Remove gist_type from update method in model. #4243...
gists: Remove gist_type from update method in model. #4243 We do not allow to change the gist type from public to private or vice versa. Therefore there is no need to provide a ability in the model to do it.

File last commit:

r787:048ecbf3 default
r851:7e3c29b0 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
});