diff --git a/.eslintrc.js b/.eslintrc.js index 99b3bc3b1d..5989476b16 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,7 +22,6 @@ module.exports = { 'src/components/NcBreadcrumb*/*.vue', 'src/components/NcContent/*.vue', 'src/components/NcDashboard*/*.vue', - 'src/components/NcAvatar*/*.vue', 'src/components/NcHeaderMenu*/*.vue', 'src/components/NcRelatedResourcesPanel*/*.vue', 'src/components/NcRich*/**/*.vue', diff --git a/src/components/NcAvatar/NcAvatar.vue b/src/components/NcAvatar/NcAvatar.vue index b382953731..589c0cdca8 100644 --- a/src/components/NcAvatar/NcAvatar.vue +++ b/src/components/NcAvatar/NcAvatar.vue @@ -124,7 +124,7 @@ export default { v-on="hasMenu ? { click: toggleMenu, keydown: toggleMenu, - } : null"> + } : {}"> @@ -558,7 +558,7 @@ export default { } }, - beforeDestroy() { + beforeUnmount() { unsubscribe('settings:avatar:updated', this.loadAvatarUrl) unsubscribe('settings:display-name:updated', this.loadAvatarUrl) if (this.showUserStatus && this.user && !this.isNoUser) { diff --git a/src/components/NcListItemIcon/NcListItemIcon.vue b/src/components/NcListItemIcon/NcListItemIcon.vue index 77838dd6c7..dbeaf3340e 100644 --- a/src/components/NcListItemIcon/NcListItemIcon.vue +++ b/src/components/NcListItemIcon/NcListItemIcon.vue @@ -122,13 +122,13 @@ It might be used for list rendering or within the multiselect for example - + class="option__avatar" />