summaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/LegacyTab.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/components/LegacyTab.vue')
-rw-r--r--apps/files/src/components/LegacyTab.vue11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/files/src/components/LegacyTab.vue b/apps/files/src/components/LegacyTab.vue
index 32c644ed806..eaa72a99bbb 100644
--- a/apps/files/src/components/LegacyTab.vue
+++ b/apps/files/src/components/LegacyTab.vue
@@ -21,7 +21,9 @@
-->
<template>
- <AppSidebarTab :icon="icon"
+ <AppSidebarTab
+ :id="id"
+ :icon="icon"
:name="name"
:active-tab="activeTab" />
</template>
@@ -38,7 +40,7 @@ export default {
type: Object,
required: true,
},
- name: {
+ id: {
type: String,
required: true,
},
@@ -52,9 +54,8 @@ export default {
icon() {
return this.component.getIcon()
},
- id() {
- // copied from AppSidebarTab
- return this.name.toLowerCase().replace(/ /g, '-')
+ name() {
+ return this.component.getLabel()
},
order() {
return this.component.order