Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show First 20 Lines • Show All 263 Lines • ▼ Show 20 Line(s) | 263 | if (appInfo.application.isInstalled) { | |||
---|---|---|---|---|---|
264 | if (reviewsModel.count > 0) { | 264 | if (reviewsModel.count > 0) { | ||
265 | return i18n("Write a review!") | 265 | return i18n("Write a review!") | ||
266 | } else { | 266 | } else { | ||
267 | return i18n("Be the first to write a review!") | 267 | return i18n("Be the first to write a review!") | ||
268 | } | 268 | } | ||
269 | // App not installed | 269 | // App not installed | ||
270 | } else { | 270 | } else { | ||
271 | if (reviewsModel.count > 0) { | 271 | if (reviewsModel.count > 0) { | ||
272 | return i18n("Install this app to write a review!") | 272 | return i18n("Install to write a review!") | ||
273 | } else { | 273 | } else { | ||
274 | return i18n("Install this app and be the first to write a review!") | 274 | return i18n("Install and be the first to write a review!") | ||
275 | } | 275 | } | ||
276 | } | 276 | } | ||
277 | } | 277 | } | ||
278 | text: writeReviewText() | 278 | text: writeReviewText() | ||
279 | Layout.alignment: Qt.AlignCenter | 279 | Layout.alignment: Qt.AlignCenter | ||
280 | onClicked: reviewsSheet.openReviewDialog() | 280 | onClicked: reviewsSheet.openReviewDialog() | ||
281 | enabled: appInfo.application.isInstalled | 281 | enabled: appInfo.application.isInstalled | ||
282 | visible: reviewsModel.backend && reviewsModel.backend.isResourceSupported(appInfo.application) | 282 | visible: reviewsModel.backend && reviewsModel.backend.isResourceSupported(appInfo.application) | ||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |