Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
3dc7875f
Commit
3dc7875f
authored
Oct 08, 2021
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HARDCODED slapos_jio: do not logout manager
parent
a013e9bc
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
173 additions
and
154 deletions
+173
-154
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_utils_js.js
...emplateItem/web_page_module/rjs_gadget_slapos_utils_js.js
+10
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_utils_js.xml
...mplateItem/web_page_module/rjs_gadget_slapos_utils_js.xml
+163
-154
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_utils_js.js
View file @
3dc7875f
...
...
@@ -3,6 +3,7 @@
(
function
(
window
,
RSVP
,
UriTemplate
)
{
"
use strict
"
;
function
redirectToLoginPage
(
gadget
)
{
return
;
var
logout_url_template
;
return
gadget
.
jio_getAttachment
(
'
acl_users
'
,
'
links
'
)
.
push
(
function
(
links
)
{
...
...
@@ -28,16 +29,25 @@
.
push
(
function
()
{
return
gadget
.
getSetting
(
"
me
"
);
})
.
push
(
undefined
,
function
()
{
return
'
person_module/template_member
'
;
})
.
push
(
function
(
me
)
{
if
(
me
===
undefined
)
{
me
=
'
person_module/template_member
'
;
}
console
.
log
(
'
aaa
'
,
me
);
return
RSVP
.
all
([
me
,
gadget
.
jio_get
(
me
)]);
})
.
push
(
function
(
list
)
{
console
.
log
(
'
lalala
'
,
list
);
if
(
list
[
0
]
===
undefined
)
{
return
redirectToLoginPage
(
gadget
);
}
return
list
[
0
];
})
.
push
(
undefined
,
function
(
error
)
{
console
.
warn
(
'
nutnut
'
,
error
);
return
redirectToLoginPage
(
gadget
);
});
};
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_utils_js.xml
View file @
3dc7875f
This diff is collapsed.
Click to expand it.
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