Share dialog: new page when no option is selected.

This commit is contained in:
John Livingston 2024-04-03 15:54:58 +02:00
parent 20317f9023
commit 3dcc05bf26
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -290,6 +290,7 @@ async function shareChatUrl (registerOptions: RegisterClientOptions, settings: a
let shareStringValue
let shareStringOpen: string | undefined
if (!form.radioProtocolXMPP?.checked) {
if (form.readonly?.checked || form.autoColors?.checked || form.generateIframe?.checked) {
shareStringValue = getIframeUri(registerOptions, settings, video, uriOptions)
if (form.generateIframe.checked) {
form.openButton.disabled = true
@ -307,6 +308,13 @@ async function shareChatUrl (registerOptions: RegisterClientOptions, settings: a
} else {
form.openButton.disabled = false
}
} else {
shareStringValue = window.location.protocol +
'//' +
window.location.host +
'/p/livechat/room?room=' +
encodeURIComponent(video.uuid)
}
} else {
// we must generate a XMPP room address
// form.openButton.disabled = true