Fix some errors with the project menu when jitsi is selected as videoconference system
parent
fd45a02fef
commit
66921944b0
|
@ -95,25 +95,28 @@ class ProjectMenuController
|
||||||
return sectionName
|
return sectionName
|
||||||
|
|
||||||
_videoConferenceUrl: () ->
|
_videoConferenceUrl: () ->
|
||||||
|
# Get base url
|
||||||
if @.project.get("videoconferences") == "appear-in"
|
if @.project.get("videoconferences") == "appear-in"
|
||||||
baseUrl = "https://appear.in/"
|
baseUrl = "https://appear.in/"
|
||||||
else if @.project.get("videoconferences") == "talky"
|
else if @.project.get("videoconferences") == "talky"
|
||||||
baseUrl = "https://talky.io/"
|
baseUrl = "https://talky.io/"
|
||||||
else if @.project.get("videoconferences") == "jitsi"
|
else if @.project.get("videoconferences") == "jitsi"
|
||||||
baseUrl = "https://meet.jit.si/"
|
baseUrl = "https://meet.jit.si/"
|
||||||
url = @.project.get("slug") + "-" + taiga.slugify(@.project.get("videoconferences_extra_data"))
|
|
||||||
url = url.replace(/-/g, "")
|
|
||||||
return baseUrl + url
|
|
||||||
else if @.project.get("videoconferences") == "custom"
|
else if @.project.get("videoconferences") == "custom"
|
||||||
return @.project.get("videoconferences_extra_data")
|
return @.project.get("videoconferences_extra_data")
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
# Add prefix to the chat room name if exist
|
||||||
if @.project.get("videoconferences_extra_data")
|
if @.project.get("videoconferences_extra_data")
|
||||||
url = @.project.get("slug") + "-" + @.project.get("videoconferences_extra_data")
|
url = @.project.get("slug") + "-" + taiga.slugify(@.project.get("videoconferences_extra_data"))
|
||||||
else
|
else
|
||||||
url = @.project.get("slug")
|
url = @.project.get("slug")
|
||||||
|
|
||||||
|
# Some special cases
|
||||||
|
if @.project.get("videoconferences") == "jitsi"
|
||||||
|
url = url.replace(/-/g, "")
|
||||||
|
|
||||||
return baseUrl + url
|
return baseUrl + url
|
||||||
|
|
||||||
angular.module("taigaComponents").controller("ProjectMenu", ProjectMenuController)
|
angular.module("taigaComponents").controller("ProjectMenu", ProjectMenuController)
|
||||||
|
|
Loading…
Reference in New Issue