fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 apps

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/47752/head
skjnldsv 2024-09-04 16:42:18 +07:00 committed by backportbot[bot]
parent 09fef8f0ec
commit 1ece5b975d
1 changed files with 2 additions and 1 deletions

@ -80,7 +80,8 @@ export default defineComponent({
* Either the nodes filename or a custom display name (e.g. for shares)
*/
displayName() {
return this.source.displayname
// basename fallback needed for apps using old `@nextcloud/files` prior 3.6.0
return this.source.displayname || this.source.basename
},
/**
* The display name without extension