Use label from apps
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
b518a6550d
commit
b479af83f0
2 changed files with 2 additions and 3 deletions
|
@ -14,7 +14,6 @@ window.OCP.Collaboration.registerType('file', {
|
|||
}, false);
|
||||
});
|
||||
},
|
||||
/** used in "Link to a {typeString}" */
|
||||
typeString: t('files_sharing', 'file'),
|
||||
typeString: t('files_sharing', 'Link to a file'),
|
||||
typeIconClass: 'icon-files-dark'
|
||||
});
|
||||
|
|
|
@ -64,7 +64,7 @@ export default {
|
|||
return types[type].typeIconClass || '';
|
||||
},
|
||||
getLabel(type) {
|
||||
return t('core', 'Link to a {label}', { label: types[type].typeString || type }, 1)
|
||||
return escapeHTML(types[type].typeString || type)
|
||||
},
|
||||
getLink(type, id) {
|
||||
/* TODO: Allow action to be executed instead of href as well */
|
||||
|
|
Loading…
Reference in a new issue