fix issue ocis-1043 in settings service

This commit is contained in:
Florian Schade
2020-12-11 15:18:20 +01:00
parent 0dfdcd7fb3
commit 774620bc29
2 changed files with 7 additions and 6 deletions
File diff suppressed because one or more lines are too long
+4 -3
View File
@@ -96,7 +96,8 @@ export default {
route: {
name: 'settings',
path: `/settings/${extension}`
}
},
menu: 'user'
}
this.ADD_NAV_ITEM({
extension: 'settings',
@@ -107,8 +108,8 @@ export default {
getExtensionName (extension) {
extension = extension || ''
switch (extension) {
case 'ocis-accounts': return this.$gettext('Account')
case 'ocis-hello': return this.$gettext('Hello')
case 'ocis-accounts': return 'Account'
case 'ocis-hello': return 'Hello'
default: {
const shortenedName = extension.replace('ocis-', '')
return shortenedName.charAt(0).toUpperCase() + shortenedName.slice(1)