Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
433be3e0
Commit
433be3e0
authored
Apr 14, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter correction for verticalicon panel
standard
parent
f1400dd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
vertical-icons-component.js
src/app/components/vertical-icons-component.js
+7
-3
contractDropdown.js
src/app/tabs/runTab/contractDropdown.js
+1
-2
No files found.
src/app/components/vertical-icons-component.js
View file @
433be3e0
...
...
@@ -116,11 +116,16 @@ class VerticalIconComponent {
* Remove active for the current activated icons
*/
removeActive
()
{
// reset filters
const
images
=
this
.
view
.
querySelectorAll
(
`.image`
)
images
.
forEach
(
function
(
im
)
{
im
.
style
.
setProperty
(
'filter'
,
'invert(0.5)'
)
})
// remove active
const
currentActive
=
this
.
view
.
querySelector
(
`.
${
css
.
active
}
`
)
if
(
currentActive
)
{
currentActive
.
classList
.
remove
(
css
.
active
)
let
image
=
currentActive
.
querySelector
(
'.image'
)
image
.
style
.
setProperty
(
'filter'
,
'invert(0.5)'
)
}
}
...
...
@@ -242,7 +247,6 @@ const css = csjs`
filter: invert(0.5);
}
.image {
filter: invert(0.5);
}
.icon svg {
width: 28px;
...
...
src/app/tabs/runTab/contractDropdown.js
View file @
433be3e0
...
...
@@ -68,7 +68,6 @@ class ContractDropdownUI {
</div>
`
this
.
selectContractNames
.
addEventListener
(
'change'
,
this
.
setInputParamsPlaceHolder
.
bind
(
this
))
this
.
setInputParamsPlaceHolder
()
return
el
}
...
...
@@ -89,7 +88,7 @@ class ContractDropdownUI {
this
.
orLabel
.
style
.
display
=
'block'
}
}
setInputParamsPlaceHolder
()
{
this
.
createPanel
.
innerHTML
=
''
if
(
this
.
selectContractNames
.
selectedIndex
<
0
||
this
.
selectContractNames
.
children
.
length
<=
0
)
{
...
...
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