aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/views/Sidebar.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/views/Sidebar.vue')
-rw-r--r--apps/files/src/views/Sidebar.vue6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue
index 1758b510b17..97958afa902 100644
--- a/apps/files/src/views/Sidebar.vue
+++ b/apps/files/src/views/Sidebar.vue
@@ -255,11 +255,7 @@ export default {
* @returns {boolean}
*/
canDisplay(tab) {
- if (tab.isLegacyTab) {
- return this.fileInfo && tab.component.canDisplay && tab.component.canDisplay(this.fileInfo)
- }
- // if the tab does not have an enabled method, we assume it's always available
- return tab.enabled ? tab.enabled(this.fileInfo) : true
+ return tab.isEnabled(this.fileInfo)
},
onClose() {
this.resetData()