Signed-off-by: Julius Härtl <jus@bitgrid.net>
},
mounted() {
this.updateGlobalStyles()
+ window.addEventListener('scroll', this.handleScroll)
setInterval(() => {
this.timer = new Date()
window.addEventListener('scroll', this.disableFirstrunHint)
}
},
+ destroyed() {
+ window.removeEventListener('scroll', this.handleScroll)
+ },
methods: {
/**
* Method to register panels that will be called by the integrating apps
}
this.saveStatuses()
},
+ handleScroll() {
+ if (window.scrollY > 50) {
+ document.body.classList.add('dashboard--scrolled')
+ } else {
+ document.body.classList.remove('dashboard--scrolled')
+ }
+ },
},
}
</script>