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
8ac49525
Commit
8ac49525
authored
Feb 05, 2018
by
Piotr Gawron
Browse files
when opening export tab with session expired redirection is provided
parent
47117868
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/gui/leftPanel/ProjectInfoPanel.js
View file @
8ac49525
...
...
@@ -162,6 +162,12 @@ ProjectInfoPanel.prototype._createInfoPanelGui = function () {
type
:
"
a
"
,
href
:
ServerConnector
.
getServerBaseUrl
()
+
"
/export.xhtml?id=
"
+
projectId
,
content
:
'
<i class="fa fa-mail-forward"> EXPORT
'
,
onclick
:
function
()
{
//TODO session expired hack (it should be done on the export.xhtml web page)
if
(
ServerConnector
.
getSessionData
().
getToken
()
===
undefined
)
{
exportButton
.
href
=
ServerConnector
.
getServerBaseUrl
()
+
"
login.xhtml?from=
"
+
encodeURI
(
exportButton
.
href
);
}
}
});
liElement
=
Functions
.
createElement
({
type
:
"
li
"
,
...
...
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