##// END OF EJS Templates
pull-request: extended default reviewers functionality....
pull-request: extended default reviewers functionality. - added mandatory reviewers JS logic Fixes: #4219 - added option to forbid author to be a reviewer via JS/Frontend checks. Fixes #5190 - added option to forbid adding new reviewers except those defined. Fixes #5208

File last commit:

r727:912a8f06 default
r1769:fb9baff8 default
Show More
rhodecode-toggle.js
15 lines | 517 B | application/javascript | JavascriptLexer
Polymer({
is: 'rhodecode-toggle',
properties: {
noSpinner: { type: Boolean, value: false, reflectToAttribute:true},
tooltipText: { type: String, value: "Click to toggle", reflectToAttribute:true},
checked: { type: Boolean, value: false, reflectToAttribute:true},
active: { type: Boolean, value: false, reflectToAttribute:true, notify:true}
},
shouldShow: function(){
return !this.noSpinner
},
labelStatus: function(isActive){
return this.checked? 'Enabled' : "Disabled"
}
});