Adding jitsi to meetup choices
parent
a3f453b897
commit
c7b2b423ce
|
@ -249,15 +249,19 @@ ProjectMenuDirective = ($log, $compile, $auth, $rootscope, $tgAuth, $location, $
|
||||||
container.replaceWith(dom)
|
container.replaceWith(dom)
|
||||||
|
|
||||||
videoConferenceUrl = (project) ->
|
videoConferenceUrl = (project) ->
|
||||||
|
urlSeparator = "-"
|
||||||
if project.videoconferences == "appear-in"
|
if project.videoconferences == "appear-in"
|
||||||
baseUrl = "https://appear.in/"
|
baseUrl = "https://appear.in/"
|
||||||
else if project.videoconferences == "talky"
|
else if project.videoconferences == "talky"
|
||||||
baseUrl = "https://talky.io/"
|
baseUrl = "https://talky.io/"
|
||||||
|
else if project.videoconferences == "jitsi"
|
||||||
|
urlSeparator = ""
|
||||||
|
baseUrl = "https://meet.jit.si/"
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
if project.videoconferences_salt
|
if project.videoconferences_salt
|
||||||
url = "#{project.slug}-#{project.videoconferences_salt}"
|
url = "#{project.slug}#{urlSeparator}#{project.videoconferences_salt}"
|
||||||
else
|
else
|
||||||
url = "#{project.slug}"
|
url = "#{project.slug}"
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ div.wrapper(tg-project-modules, ng-controller="ProjectProfileController as ctrl"
|
||||||
|
|
||||||
div.videoconference-attributes.hidden
|
div.videoconference-attributes.hidden
|
||||||
select(ng-model="project.videoconferences",
|
select(ng-model="project.videoconferences",
|
||||||
ng-options="e.id as e.name for e in [{'id':'appear-in', 'name':'AppearIn'},{'id':'talky', 'name': 'Talky'}]")
|
ng-options="e.id as e.name for e in [{'id':'appear-in', 'name':'AppearIn'},{'id':'jitsi', 'name': 'Jitsi'},{'id':'talky', 'name': 'Talky'}]")
|
||||||
option(value="", translate="ADMIN.MODULES.SELECT_VIDEOCONFERENCE")
|
option(value="", translate="ADMIN.MODULES.SELECT_VIDEOCONFERENCE")
|
||||||
input(type="text", ng-model="project.videoconferences_salt",
|
input(type="text", ng-model="project.videoconferences_salt",
|
||||||
placeholder="{{'ADMIN.MODULES.SALT_CHAT_ROOM' | translate}}")
|
placeholder="{{'ADMIN.MODULES.SALT_CHAT_ROOM' | translate}}")
|
||||||
|
|
Loading…
Reference in New Issue