Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Wolfgang Knopki
Spacedeck-open-SAML
Commits
dc986dcc
Commit
dc986dcc
authored
May 07, 2018
by
Lukas F. Hartmann
Browse files
remove traces of team from guest login, fixes #20
parent
fc653e5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/javascripts/spacedeck_spaces.js
View file @
dc986dcc
...
...
@@ -71,9 +71,7 @@ var SpacedeckSpaces = {
methods
:
{
search_spaces
:
function
()
{
var
query
=
this
.
folder_spaces_search
;
console
.
log
(
"
search query:
"
,
query
);
load_spaces_search
(
query
,
function
(
spaces
)
{
console
.
log
(
"
results:
"
,
spaces
);
this
.
active_profile_spaces
=
spaces
;
}.
bind
(
this
));
},
...
...
@@ -85,14 +83,7 @@ var SpacedeckSpaces = {
location
.
reload
();
},
ask_guestname
:
function
(
dft
,
cb
)
{
console
.
log
(
"
ask_guestname
"
);
var
team_name
=
"
Spacedeck
"
;
if
(
subdomainTeam
)
{
team_name
=
subdomainTeam
.
name
;
}
smoke
.
prompt
(
__
(
'
what_is_your_name
'
,
team_name
)
,
function
(
content
)
{
smoke
.
prompt
(
__
(
'
what_is_your_name
'
,
"
Spacedeck
"
)
,
function
(
content
)
{
if
(
!
content
||
(
content
.
length
===
0
))
{
this
.
ask_guestname
(
dft
,
cb
);
}
else
{
...
...
@@ -101,7 +92,7 @@ var SpacedeckSpaces = {
if
(
"
localStorage
"
in
window
&&
localStorage
)
{
try
{
localStorage
[
'
guest_nickname
'
]
=
this
.
guest_nickname
;
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
error
(
e
);
}
}
...
...
@@ -172,7 +163,6 @@ var SpacedeckSpaces = {
this
.
space_embed_html
=
"
<iframe width=
\"
1024
\"
height=
\"
768
\"
seamless src=
\"
"
+
ENV
.
webEndpoint
+
"
/spaces/
"
+
space
.
_id
+
"
?embedded=1
\"
></iframe>
"
;
if
(
!
is_home
)
{
//console.log(space);
load_members
(
space
,
function
(
members
)
{
this
.
active_space_memberships
=
members
;
}.
bind
(
this
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment