Skip to content

Commit

Permalink
Merge pull request #8508 from nextcloud/backport/8498/stable24
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen committed Jan 2, 2023
2 parents 84c3bce + 39d2a1c commit f04461a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/FilesSidebarCallViewApp.vue
Expand Up @@ -145,12 +145,12 @@ export default {
return
}
const headerAction = document.querySelector('.app-sidebar-header__action')
if (!headerAction) {
const headerDescription = document.querySelector('.app-sidebar-header__description')
if (!headerDescription) {
return
}
if (this.$el.parentElement === headerAction) {
if (this.$el.parentElement === headerDescription) {
return
}
Expand Down Expand Up @@ -254,7 +254,7 @@ export default {
/**
* Shows the sidebar header contents and moves the call view back to the
* actions.
* description.
*/
restoreSidebarHeaderContents() {
const header = document.querySelector('.app-sidebar-header')
Expand All @@ -272,9 +272,9 @@ export default {
}
}
const headerAction = document.querySelector('.app-sidebar-header__action')
if (headerAction) {
headerAction.appendChild(this.$el)
const headerDescription = document.querySelector('.app-sidebar-header__description')
if (headerDescription) {
headerDescription.appendChild(this.$el)
}
},
},
Expand Down

0 comments on commit f04461a

Please sign in to comment.