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

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2024-09-04 16:42:18 +02:00 committed by backportbot[bot]
parent 09fef8f0ec
commit 1ece5b975d

View file

@ -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