diff --git a/ui/component/notification/view.jsx b/ui/component/notification/view.jsx index 18e7c9330..72e009ae0 100644 --- a/ui/component/notification/view.jsx +++ b/ui/component/notification/view.jsx @@ -107,13 +107,26 @@ export default function Notification(props: Props) { const notificationTitle = notification_parameters.device.title; const titleSplit = notificationTitle.split(' '); - const title = titleSplit.map((message) => { + let fullTitle = [' ']; + let uriIndicator; + const title = titleSplit.map((message, index) => { if (channelName === message) { - return ( + uriIndicator = ( ); + fullTitle.push(' '); + const resultTitle = fullTitle; + fullTitle = [' ']; + + return [resultTitle.join(' '), uriIndicator]; } else { - return {__(' %message% ', { message })}; + fullTitle.push(message); + + if (index === (titleSplit.length - 1)) { + return ( + {fullTitle.join(' ')} + ); + } } });