Help button for OBS web source.
This commit is contained in:
parent
3f3b72f2f6
commit
7b617a9aad
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user