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);
|
}, 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'
|
||||||
});
|
});
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue