Merge pull request #2425 from nextcloud/show-real-apps-rating
Show app store rating only for 5+ votes
This commit is contained in:
commit
220452e943
|
@ -239,6 +239,8 @@ class AppSettingsController extends Controller {
|
|||
'canInstall' => true,
|
||||
'preview' => isset($app['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($app['screenshots'][0]['url']) : '',
|
||||
'score' => $app['ratingOverall'],
|
||||
'ratingNumOverall' => $app['ratingNumOverall'],
|
||||
'ratingNumThresholdReached' => $app['ratingNumOverall'] > 5 ? true : false,
|
||||
'removable' => $existsLocally,
|
||||
'active' => $this->appManager->isEnabledForUser($app['id']),
|
||||
'needsDownload' => !$existsLocally,
|
||||
|
|
|
@ -53,7 +53,7 @@ script(
|
|||
<div class="app-level">
|
||||
{{{level}}}
|
||||
</div>
|
||||
{{#if score}}
|
||||
{{#if ratingNumThresholdReached }}
|
||||
<div class="app-score">{{{score}}}</div>
|
||||
{{/if}}
|
||||
<div class="app-detailpage"></div>
|
||||
|
|
Loading…
Reference in New Issue