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
4
Merge Requests
4
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
37e166ae
Commit
37e166ae
authored
May 23, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary complexity in InstallApplicationButton
parent
c62613f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
discover/qml/InstallApplicationButton.qml
discover/qml/InstallApplicationButton.qml
+5
-20
No files found.
discover/qml/InstallApplicationButton.qml
View file @
37e166ae
...
...
@@ -13,7 +13,6 @@ ConditionalLoader
readonly
property
alias
listener
:
listener
readonly
property
string
text
:
!
application
.
isInstalled
?
i18n
(
"
Install
"
)
:
i18n
(
"
Remove
"
)
property
Component
additionalItem
:
null
property
bool
flat
:
false
TransactionListener
{
id
:
listener
...
...
@@ -56,25 +55,11 @@ ConditionalLoader
}
}
Component
{
id
:
flatButton
ToolButton
{
enabled
:
application
.
state
!=
AbstractResource
.
Broken
text
:
root
.
text
onClicked
:
root
.
click
()
}
}
Component
{
id
:
fullButton
Button
{
enabled
:
application
.
state
!=
AbstractResource
.
Broken
text
:
root
.
text
componentFalse
:
Button
{
enabled
:
application
.
state
!=
AbstractResource
.
Broken
text
:
root
.
text
focus
:
true
onClicked
:
root
.
click
()
}
onClicked
:
root
.
click
()
}
componentFalse
:
root
.
flat
?
flatButton
:
fullButton
}
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