Use label from apps

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-04-08 16:01:52 +02:00
parent b518a6550d
commit b479af83f0
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 3 deletions

View file

@ -14,7 +14,6 @@ window.OCP.Collaboration.registerType('file', {
}, false); }, false);
}); });
}, },
/** used in "Link to a {typeString}" */ typeString: t('files_sharing', 'Link to a file'),
typeString: t('files_sharing', 'file'),
typeIconClass: 'icon-files-dark' typeIconClass: 'icon-files-dark'
}); });

View file

@ -64,7 +64,7 @@ export default {
return types[type].typeIconClass || ''; return types[type].typeIconClass || '';
}, },
getLabel(type) { getLabel(type) {
return t('core', 'Link to a {label}', { label: types[type].typeString || type }, 1) return escapeHTML(types[type].typeString || type)
}, },
getLink(type, id) { getLink(type, id) {
/* TODO: Allow action to be executed instead of href as well */ /* TODO: Allow action to be executed instead of href as well */