Help button for OBS web source.

This commit is contained in:
John Livingston 2024-06-14 16:07:59 +02:00
parent 3f3b72f2f6
commit 7b617a9aad
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -70,12 +70,14 @@ export function tplShareChatTabs (el: ShareChatElement): TemplateResult {
export function tplShareChatTips (el: ShareChatElement): TemplateResult { export function tplShareChatTips (el: ShareChatElement): TemplateResult {
let label: string | undefined let label: string | undefined
let tips: TemplateResult | undefined
switch (el.currentTab) { switch (el.currentTab) {
case 'peertube': case 'peertube':
label = LOC_SHARE_CHAT_PEERTUBE_TIPS label = LOC_SHARE_CHAT_PEERTUBE_TIPS
break break
case 'embed': case 'embed':
label = LOC_TIPS_FOR_STREAMERS label = LOC_TIPS_FOR_STREAMERS
tips = html`<livechat-help-button .page=${'documentation/user/obs'}></livechat-help-button>`
break break
case 'xmpp': case 'xmpp':
label = LOC_CONNECT_USING_XMPP_HELP label = LOC_CONNECT_USING_XMPP_HELP
@ -84,7 +86,7 @@ export function tplShareChatTips (el: ShareChatElement): TemplateResult {
if (!label) { if (!label) {
return html`` return html``
} }
return html`<div class="livechat-shareurl-tips">${ptTr(label)}</div>` return html`<div class="livechat-shareurl-tips">${ptTr(label)}${tips}</div>`
} }
function _tplShareChatPeertubeOptions (_el: ShareChatElement): TemplateResult { function _tplShareChatPeertubeOptions (_el: ShareChatElement): TemplateResult {