Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
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
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
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
Plasma
Discover
Commits
d7301951
Commit
d7301951
authored
Oct 05, 2017
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify clear search logic, centralize within the TextField
parent
5a0f3a8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
discover/qml/DiscoverDrawer.qml
discover/qml/DiscoverDrawer.qml
+8
-5
discover/qml/navigation.js
discover/qml/navigation.js
+2
-3
No files found.
discover/qml/DiscoverDrawer.qml
View file @
d7301951
...
...
@@ -40,10 +40,6 @@ Kirigami.GlobalDrawer {
Navigation
.
openHome
();
}
function
clearSearch
()
{
searchField
.
text
=
""
}
onCurrentSubMenuChanged
:
{
if
(
currentSubMenu
)
currentSubMenu
.
trigger
()
...
...
@@ -84,7 +80,14 @@ Kirigami.GlobalDrawer {
ignoreUnknownSignals
:
true
target
:
window
.
leftPage
onClearSearch
:
{
drawer
.
clearSearch
()
searchField
.
text
=
""
}
}
Connections
{
target
:
window
onLeftPageChanged
:
{
searchField
.
text
=
""
}
}
...
...
discover/qml/navigation.js
View file @
d7301951
...
...
@@ -38,9 +38,9 @@ function openApplicationMime(mime) {
}
function
openApplicationList
(
props
)
{
var
page
=
window
.
stack
.
push
(
applicationListComp
,
props
)
window
.
stack
.
push
(
applicationListComp
,
props
)
if
(
props
.
search
===
""
)
page
.
clearSearch
()
window
.
globalDrawer
.
clearSearch
();
}
function
openCategory
(
cat
,
search
)
{
...
...
@@ -64,6 +64,5 @@ function openHome() {
if
(
window
.
globalDrawer
.
currentSubMenu
)
window
.
globalDrawer
.
resetMenu
();
clearStack
()
window
.
globalDrawer
.
clearSearch
();
window
.
stack
.
push
(
topBrowsingComp
)
}
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