Share dialog: new page when no option is selected.
This commit is contained in:
parent
20317f9023
commit
3dcc05bf26
@ -290,6 +290,7 @@ async function shareChatUrl (registerOptions: RegisterClientOptions, settings: a
|
|||||||
let shareStringValue
|
let shareStringValue
|
||||||
let shareStringOpen: string | undefined
|
let shareStringOpen: string | undefined
|
||||||
if (!form.radioProtocolXMPP?.checked) {
|
if (!form.radioProtocolXMPP?.checked) {
|
||||||
|
if (form.readonly?.checked || form.autoColors?.checked || form.generateIframe?.checked) {
|
||||||
shareStringValue = getIframeUri(registerOptions, settings, video, uriOptions)
|
shareStringValue = getIframeUri(registerOptions, settings, video, uriOptions)
|
||||||
if (form.generateIframe.checked) {
|
if (form.generateIframe.checked) {
|
||||||
form.openButton.disabled = true
|
form.openButton.disabled = true
|
||||||
@ -307,6 +308,13 @@ async function shareChatUrl (registerOptions: RegisterClientOptions, settings: a
|
|||||||
} else {
|
} else {
|
||||||
form.openButton.disabled = false
|
form.openButton.disabled = false
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
shareStringValue = window.location.protocol +
|
||||||
|
'//' +
|
||||||
|
window.location.host +
|
||||||
|
'/p/livechat/room?room=' +
|
||||||
|
encodeURIComponent(video.uuid)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// we must generate a XMPP room address
|
// we must generate a XMPP room address
|
||||||
// form.openButton.disabled = true
|
// form.openButton.disabled = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user