Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
1dc5c450
Commit
1dc5c450
authored
Aug 28, 2019
by
Piotr Gawron
Browse files
when reloading page due to anonymous login, don't create admin page
parent
198d54de
Pipeline
#13304
canceled with stage
in 2 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/minerva.js
View file @
1dc5c450
...
...
@@ -890,17 +890,20 @@ function createAdmin(params) {
ServerConnector
.
getSessionData
(
null
).
getLogin
()
===
null
||
ServerConnector
.
getSessionData
(
null
).
getLogin
()
===
undefined
)
{
window
.
location
.
href
=
ServerConnector
.
getServerBaseUrl
()
+
"
login.xhtml?from=
"
+
encodeURI
(
window
.
location
.
href
);
return
Promise
.
resolve
();
}
return
ServerConnector
.
getConfiguration
();
}).
then
(
function
(
configuration
)
{
params
.
setConfiguration
(
configuration
);
result
=
new
Admin
(
params
);
return
createFooter
();
}).
then
(
function
(
footer
)
{
params
.
getElement
().
appendChild
(
footer
);
return
result
.
init
();
}).
then
(
function
()
{
return
result
;
if
(
configuration
!==
undefined
)
{
params
.
setConfiguration
(
configuration
);
result
=
new
Admin
(
params
);
return
createFooter
().
then
(
function
(
footer
)
{
params
.
getElement
().
appendChild
(
footer
);
return
result
.
init
();
}).
then
(
function
()
{
return
result
;
});
}
});
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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