mirror of
https://github.com/nextcloud/integration_moodle.git
synced 2025-12-17 21:02:05 +01:00
get ready for next vue-dashboard release
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
parent
5006a42dad
commit
1de7852a99
1 changed files with 6 additions and 4 deletions
|
|
@ -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 ''
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue