Commit e6c35b6d authored by Nathaniel Graham's avatar Nathaniel Graham
Browse files

Only let the user write the first review if they've actually installed the app

Summary: Previously, you could write the first review for an app even if you didn't have it installed. No longer, with this patch!

Test Plan: {F5712354}

Reviewers: #discover_software_store, apol

Reviewed By: #discover_software_store, apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10525
parent 85ebc540
......@@ -200,7 +200,7 @@ DiscoverPage {
}
}
LinkButton {
text: i18n("Be the first to write a review!")
text: appInfo.application.isInstalled? i18n("Be the first to write a review!") : i18n("Install this app and be the first to write a review!")
onClicked: reviewsSheet.openReviewDialog()
enabled: appInfo.application.isInstalled
visible: !commentsButton.visible && reviewsModel.backend && reviewsModel.backend.isResourceSupported(appInfo.application)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment