##// END OF EJS Templates
auth-user: enabled cache flags for fetching ACL ids....
auth-user: enabled cache flags for fetching ACL ids. - those are now safe to cache since we have a proper cache invalidation logic for permissions of users - for lots of repo this makes our goto switcher much much faster

File last commit:

r3192:689a0c93 merge stable
r4328:eca0587d 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);