Reword ProtocolHandlerNagger message

This commit is contained in:
Simon Ser 2021-11-16 11:30:33 +01:00
parent 321140327e
commit a0b250df3f

View File

@ -446,11 +446,12 @@ class ProtocolHandlerNagger extends Component {
if (!navigator.registerProtocolHandler || !this.state.nag) { if (!navigator.registerProtocolHandler || !this.state.nag) {
return null; return null;
} }
let name = this.props.bouncerName || "this bouncer";
return html` return html`
<div class="logline"> <div class="logline">
<${Timestamp}/> <${Timestamp}/>
${" "} ${" "}
To open IRC links here, <a href="#" onClick=${this.handleClick}>enable the IRC link handler</a> <a href="#" onClick=${this.handleClick}>Register our protocol handler</a> to open IRC links with ${name}
</div> </div>
`; `;
} }
@ -504,7 +505,8 @@ export default class Buffer extends Component {
children.push(html`<${NotificationNagger}/>`); children.push(html`<${NotificationNagger}/>`);
} }
if (buf.type == BufferType.SERVER && this.props.isBouncer && !server.isupport.has("BOUNCER_NETID")) { if (buf.type == BufferType.SERVER && this.props.isBouncer && !server.isupport.has("BOUNCER_NETID")) {
children.push(html`<${ProtocolHandlerNagger}/>`); let name = server.isupport.get("NETWORK");
children.push(html`<${ProtocolHandlerNagger} bouncerName=${name}/>`);
} }
let onChannelClick = this.props.onChannelClick; let onChannelClick = this.props.onChannelClick;