get ready for next vue-dashboard release

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Julien Veyssier 2020-11-13 14:27:18 +01:00
parent 5006a42dad
commit 1de7852a99
No known key found for this signature in database
GPG key ID: 4141FEE162030638

View file

@ -70,6 +70,7 @@ export default {
targetUrl: this.getNotificationTarget(n),
avatarUrl: this.getAuthorAvatarUrl(n),
avatarUsername: this.getSubline(n),
avatarIsNoUser: true,
overlayIconUrl: this.getNotificationTypeImage(n),
mainText: this.getMainText(n),
subText: this.getSubline(n),
@ -214,10 +215,11 @@ export default {
if (['event'].includes(n.type)) {
return n.course.courseimage
} else if (['recent'].includes(n.type)) {
const el = document.createElement('img')
el.innerHTML = n.icon
const realUrl = el.firstChild.getAttribute('src')
return generateUrl('/apps/integration_moodle/avatar?') + encodeURIComponent('url') + '=' + encodeURIComponent(realUrl)
return undefined
// const el = document.createElement('img')
// el.innerHTML = n.icon
// const realUrl = el.firstChild.getAttribute('src')
// return generateUrl('/apps/integration_moodle/avatar?') + encodeURIComponent('url') + '=' + encodeURIComponent(realUrl)
}
return ''
},