Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
oauth-play
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
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
ASM
oauth-play
Commits
206bbc6b
Commit
206bbc6b
authored
Sep 10, 2017
by
Andreas Åkre Solberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update expanded state
parent
493648c9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
src/components/HostnameInput.jsx
src/components/HostnameInput.jsx
+2
-2
src/components/ServerConfigInput.jsx
src/components/ServerConfigInput.jsx
+1
-1
src/containers/HostnameController.js
src/containers/HostnameController.js
+2
-1
src/containers/ServerConfigController.js
src/containers/ServerConfigController.js
+5
-3
No files found.
src/components/HostnameInput.jsx
View file @
206bbc6b
...
@@ -59,9 +59,9 @@ class Component extends PureComponent {
...
@@ -59,9 +59,9 @@ class Component extends PureComponent {
</
div
>
</
div
>
)
)
}
}
// console.error("-----", this.props)
return
(
return
(
<
Panel
header
=
"OAuth Service Discovery"
eventKey
=
"1"
collapsible
=
{
true
}
defaultExpanded
=
{
t
rue
}
>
<
Panel
header
=
"OAuth Service Discovery"
eventKey
=
"1"
collapsible
=
{
true
}
defaultExpanded
=
{
t
his
.
props
.
expanded
}
>
<
FormGroup
<
FormGroup
className
=
"gutter"
className
=
"gutter"
controlId
=
"formBasicText"
controlId
=
"formBasicText"
...
...
src/components/ServerConfigInput.jsx
View file @
206bbc6b
...
@@ -80,7 +80,7 @@ class Component extends PureComponent {
...
@@ -80,7 +80,7 @@ class Component extends PureComponent {
}
}
let
expanded
=
!!
this
.
props
.
serverConfig
let
expanded
=
this
.
props
.
expanded
&&
!!
this
.
props
.
serverConfig
return
(
return
(
<
Panel
header
=
"OAuth Server Configuration"
eventKey
=
"2"
collapsible
=
{
true
}
defaultExpanded
=
{
expanded
}
>
<
Panel
header
=
"OAuth Server Configuration"
eventKey
=
"2"
collapsible
=
{
true
}
defaultExpanded
=
{
expanded
}
>
<
form
>
<
form
>
...
...
src/containers/HostnameController.js
View file @
206bbc6b
...
@@ -4,7 +4,8 @@ import HostnameInput from '../components/HostnameInput'
...
@@ -4,7 +4,8 @@ import HostnameInput from '../components/HostnameInput'
import
API
from
'
../utils/API
'
import
API
from
'
../utils/API
'
const
mapStateToProps
=
(
state
)
=>
({
const
mapStateToProps
=
(
state
)
=>
({
serverError
:
state
.
serverError
serverError
:
state
.
serverError
,
expanded
:
!
state
.
token
})
})
const
mapDispatchToProps
=
{
const
mapDispatchToProps
=
{
...
...
src/containers/ServerConfigController.js
View file @
206bbc6b
import
{
connect
}
from
'
react-redux
'
import
{
connect
}
from
'
react-redux
'
import
ServerConfigInput
from
'
../components/ServerConfigInput
'
import
ServerConfigInput
from
'
../components/ServerConfigInput
'
// import { discoveryStart }
from '../actions/'
import
actions
from
'
../actions/
'
import
API
from
'
../utils/API
'
import
API
from
'
../utils/API
'
const
mapStateToProps
=
(
state
)
=>
({
const
mapStateToProps
=
(
state
)
=>
({
serverConfig
:
state
.
serverConfig
serverConfig
:
state
.
serverConfig
,
expanded
:
!
state
.
token
})
})
const
mapDispatchToProps
=
{
const
mapDispatchToProps
=
{
authenticateStart
:
API
.
authenticate
,
authenticateStart
:
API
.
authenticate
,
logoutStart
:
API
.
logout
logoutStart
:
API
.
logout
,
updateConfig
:
actions
.
discovery
.
completed
}
}
const
Controller
=
connect
(
const
Controller
=
connect
(
...
...
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