Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc-team
strudelv2_spa
Commits
a0d21294
Commit
a0d21294
authored
Aug 26, 2020
by
Chris Hines
Browse files
fix some routing bugs
parent
63de0fdd
Pipeline
#11588
passed with stages
in 3 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/app-routing.module.ts
View file @
a0d21294
...
...
@@ -34,6 +34,7 @@ const routes: Routes = [
{
path
:
'
sshauthz_callback
'
,
component
:
KeygenComponent
},
{
path
:
'
transfer
'
,
component
:
TransferComponent
},
{
path
:
'
noaccount/:site
'
,
component
:
NoaccountComponent
},
{
path
:
'
**
'
,
component
:
LauncherComponent
},
//{ path: 'shareconnect', component: ShareconnectComponent }
...
...
src/app/keygen/keygen.component.ts
View file @
a0d21294
...
...
@@ -72,7 +72,13 @@ export class KeygenComponent implements OnInit, OnDestroy {
switchMap
((
_
)
=>
of
([
null
])),
);
agent$
.
subscribe
(
(
res
)
=>
this
.
router
.
navigate
([
sessionStorage
.
getItem
(
'
path
'
)]),
(
err
)
=>
{
console
.
log
(
err
)
;
this
.
logout
(
err
.
sshauthzservice
);
this
.
router
.
navigate
([
'
/noaccount
'
,
err
.
sshauthzservice
.
name
])})
(
err
)
=>
{
console
.
log
(
err
)
;
if
(
err
.
sshauthzservice
!==
undefined
)
{
this
.
logout
(
err
.
sshauthzservice
)
this
.
router
.
navigate
([
'
/noaccount
'
,
err
.
sshauthzservice
.
name
])
}
else
{
this
.
router
.
navigate
([
'
/login
'
])}
}
)
}
extractToken
(
frag
:
string
)
{
...
...
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