Add a warning on the apps list when the version is missing
This commit is contained in:
parent
336fe868b2
commit
83855c073b
|
@ -296,6 +296,9 @@ class AppSettingsController extends Controller {
|
||||||
$app['canInstall'] = empty($missing);
|
$app['canInstall'] = empty($missing);
|
||||||
$app['missingDependencies'] = $missing;
|
$app['missingDependencies'] = $missing;
|
||||||
|
|
||||||
|
$app['missingMinOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['min-version']);
|
||||||
|
$app['missingMaxOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['max-version']);
|
||||||
|
|
||||||
return $app;
|
return $app;
|
||||||
}, $apps);
|
}, $apps);
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,18 @@ script(
|
||||||
<div class="app-description-toggle-show"><?php p($l->t("Show description …"));?></div>
|
<div class="app-description-toggle-show"><?php p($l->t("Show description …"));?></div>
|
||||||
<div class="app-description-toggle-hide hidden"><?php p($l->t("Hide description …"));?></div>
|
<div class="app-description-toggle-hide hidden"><?php p($l->t("Hide description …"));?></div>
|
||||||
|
|
||||||
|
{{#if missingMinOwnCloudVersion}}
|
||||||
|
<div class="app-dependencies">
|
||||||
|
<p><?php p($l->t('This app has no minimum ownCloud version assigned. This will be an error in ownCloud 11 and later.')); ?></p>
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
|
{{#if missingMaxOwnCloudVersion}}
|
||||||
|
<div class="app-dependencies">
|
||||||
|
<p><?php p($l->t('This app has no maximum ownCloud version assigned. This will be an error in ownCloud 11 and later.')); ?></p>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#unless canInstall}}
|
{{#unless canInstall}}
|
||||||
<div class="app-dependencies">
|
<div class="app-dependencies">
|
||||||
<p><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></p>
|
<p><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></p>
|
||||||
|
|
Loading…
Reference in New Issue