Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
O
oauth-play
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ASM
oauth-play
Commits
afa36264
Commit
afa36264
authored
May 01, 2018
by
Andreas Åkre Solberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve panel toggle for hostnameinput
parent
e534c11c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
HostnameInput.jsx
src/components/HostnameInput.jsx
+11
-2
No files found.
src/components/HostnameInput.jsx
View file @
afa36264
...
...
@@ -11,6 +11,7 @@ class Component extends PureComponent {
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
overrideToggle
:
null
,
hostname
:
defaultHost
}
}
...
...
@@ -21,6 +22,14 @@ class Component extends PureComponent {
this
.
props
.
discoveryStart
(
this
.
state
.
hostname
)
}
actTogglePanel
=
()
=>
{
if
(
this
.
state
.
overrideToggle
===
null
)
{
this
.
setState
({
overrideToggle
:
!
(
this
.
props
.
expanded
)})
}
else
{
this
.
setState
({
overrideToggle
:
!
(
this
.
state
.
overrideToggle
===
true
)})
}
}
updateHostfield
(
e
)
{
// console.log("Updating hostname to ", e.target.value)
this
.
setState
({
hostname
:
e
.
target
.
value
})
...
...
@@ -59,9 +68,9 @@ class Component extends PureComponent {
</
div
>
)
}
// console.error("-----", this.props)
let
expanded
=
(
this
.
state
.
overrideToggle
!==
null
)
?
this
.
state
.
overrideToggle
:
this
.
props
.
expanded
return
(
<
Panel
header=
"OAuth Service Discovery"
eventKey=
"1"
collapsible=
{
true
}
defaultExpanded=
{
this
.
props
.
expanded
}
>
<
Panel
onClick=
{
this
.
actTogglePanel
}
header=
"OAuth Service Discovery"
eventKey=
"1"
collapsible=
{
true
}
expanded=
{
expanded
}
>
<
FormGroup
className=
"gutter"
controlId=
"formBasicText"
...
...
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