Add icon content filter hook
This commit is contained in:
parent
115c234a6d
commit
2a43a487c2
@ -46,6 +46,17 @@ function register ({ registerHook, peertubeHelpers }) {
|
||||
handler: result => addSymbolToVideoNameResult(result, ':D')
|
||||
})
|
||||
|
||||
registerHook({
|
||||
target: 'filter:internal.common.svg-icons.get-content.result',
|
||||
handler: (result, params) => {
|
||||
if (params.name === 'syndication') {
|
||||
return '<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
})
|
||||
|
||||
// Router hooks
|
||||
|
||||
registerHook({
|
||||
|
Loading…
Reference in New Issue
Block a user