reload on login for compatibility with autologout

This commit is contained in:
2021-09-02 15:09:35 +02:00
parent bc16158162
commit a535a2e3cf
9 changed files with 38 additions and 50 deletions

View File

@@ -9,7 +9,7 @@ export default {
const img = figure.querySelector('img:not(.blank)')
figure.classList.add('loading')
img.addEventListener('load', function (e) {
console.log('img loaded', e)
// console.log('img loaded', e)
figure.classList.remove('loading')
figure.classList.add('loaded')
})
@@ -57,14 +57,14 @@ export default {
},
mounted () {
// lazy load images on mouseover
console.log('card mounted', this.$options.name)
// console.log('card mounted', this.$options.name)
// if (this.$options.name ==! 'ModalCard') {
this.activateLazyLoad()
// }
},
updated () {
// lazy load images on mouseover
console.log('card updated', this.$options.name)
// console.log('card updated', this.$options.name)
// if (this.$options.name ==! 'ModalCard') {
this.activateLazyLoad()
// }
@@ -72,7 +72,7 @@ export default {
methods: {
// used by ModalCard
activateLazyLoad () {
console.log('card activateLazyLoad', this.$options.name)
// console.log('card activateLazyLoad', this.$options.name)
this.$el.addEventListener('mouseover', function (event) {
const figures = this.querySelectorAll('.images figure.lazy:not(.loaded):not(.loading)')