##// END OF EJS Templates
pull-requests: loosen strict view of pull-requests that state is changing...
pull-requests: loosen strict view of pull-requests that state is changing - we now replace it with limited view which still allows deletion/editing of reviewers or title and description - added labels for state changing instead of grey out (it was used for closed PRs) - small UI fixes

File last commit:

r3192:689a0c93 merge stable
r4103:78e087c7 default
Show More
rhodecode-favicon.js
33 lines | 727 B | application/javascript | JavascriptLexer
import {PolymerElement, html} from '@polymer/polymer/polymer-element.js';
export class RhodecodeFavicon extends PolymerElement {
static get is() {
return 'rhodecode-favicon';
}
static get properties() {
return {
favicon: Object,
counter: {
type: Number,
observer: '_handleCounter'
}
}
}
connectedCallback() {
super.connectedCallback();
this.favicon = new Favico({
type: 'rectangle',
animation: 'none'
});
}
_handleCounter(newVal, oldVal) {
this.favicon.badge(this.counter);
}
}
customElements.define(RhodecodeFavicon.is, RhodecodeFavicon);