chore: fixed linter issues forgotten in new frontend code

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-11-24 11:40:26 +01:00
parent 314acfc379
commit 5540671cdb
No known key found for this signature in database
GPG key ID: 45FAE7268762B400
2 changed files with 5 additions and 3 deletions

View file

@ -96,6 +96,8 @@ export default defineComponent({
},
},
emits: ['need-content'],
data() {
return {
scrollPosition: 0,
@ -312,7 +314,7 @@ export default defineComponent({
this.container.addEventListener('scroll', this.updateScrollPosition, { passive: true })
},
beforeDestroy() {
beforeUnmount() {
if (this.useWindow) {
window.removeEventListener('resize', this.updateContainerSize)
}

View file

@ -12,10 +12,10 @@ const rootPath = 'dav'
const remote = generateRemoteUrl(rootPath)
const client = createClient(remote)
// set CSRF token header
/**
* set CSRF token header
*
* @param token
* @param token - CSRF token
*/
function setHeaders(token) {
client.setHeaders({