Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
antarstick-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matěj Lang
antarstick-js
Commits
e1b12ef8
There was an error fetching the commit references. Please try again later.
Commit
e1b12ef8
authored
4 years ago
by
Marek Trtik
Browse files
Options
Downloads
Patches
Plain Diff
Added toogle of filters icon.
parent
bde4badf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/header/Header.vue
+12
-1
12 additions, 1 deletion
src/components/header/Header.vue
with
12 additions
and
1 deletion
src/components/header/Header.vue
+
12
−
1
View file @
e1b12ef8
...
...
@@ -3,7 +3,8 @@
<!--
<Filters
/>
-->
<div
class=
"top-bar"
>
<h1
style=
"margin-top: auto; margin-bottom: auto;"
>
ANTARSTICK
</h1>
<filter-icon
class=
"icon"
/>
<filter-icon
class=
"icon"
v-if=
"filtersAreHidden"
@
click=
"onToggleShowFilters"
/>
<filter-off-icon
class=
"icon"
v-else
@
click=
"onToggleShowFilters"
/>
<map-legend-icon
class=
"icon"
/>
<content-save-icon
class=
"icon"
...
...
@@ -25,6 +26,7 @@ import Filters from '@/components/header/Filters.vue'
import
ContentSaveIcon
from
'
icons/ContentSave
'
import
FilterIcon
from
'
icons/Filter
'
import
FilterOffIcon
from
'
icons/FilterOff
'
import
MapLegendIcon
from
'
icons/MapLegend
'
export
default
{
...
...
@@ -36,8 +38,14 @@ export default {
ContentSaveIcon
,
FilterIcon
,
FilterOffIcon
,
MapLegendIcon
},
data
()
{
return
{
filtersAreHidden
:
true
}
},
computed
:
{
pendingPostRequestsCount
()
{
return
this
.
$store
.
getters
.
pendingPostRequestsCount
...
...
@@ -49,6 +57,9 @@ export default {
methods
:
{
commitChangesToDisk
()
{
this
.
$store
.
dispatch
(
'
commitChangesToDisk
'
)
},
onToggleShowFilters
()
{
this
.
filtersAreHidden
=
!
this
.
filtersAreHidden
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment