Show requirements when not met

This commit is contained in:
Squidly271 2023-07-01 14:13:43 -04:00
parent 776add2fe1
commit a30e812fac
6 changed files with 7 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1245,12 +1245,13 @@ function installPlugin(pluginURL,update=false,comment="",requires="") {
if (! data.met) {
swal({
title: "<?tr("Requirements not met")?>",
text: "<?tr("The requirements for this upgrade have not been met on your system")?>",
text: "<?tr("The requirements for this upgrade have not been met on your system")?><br><br>"+comment,
allowOutsideClick: false,
showConfirmButton: true,
showCancelButton: false,
confirmButtonText: "<?tr("OK")?>",
type: "error"
type: "error",
html: true
},function(isConfirm) {
enableSearch();
});

View File

@ -1,4 +1,4 @@
f0983acc8051c406b34e5298d3c8d8b5 ./Apps.page
3580e1add40be466f0d5b1df14508e6c ./Apps.page
106b521c1feebda4d7b3f558cc016cda ./CA_notices.page
39053aadf8ec0771de1e2c2dd47e9058 ./ca_settings.page
01ed7990078dee7cecfeda9a4e49377e ./default.cfg
@ -23,4 +23,4 @@ f2a86fd875cb73bb095388e69ca035fd ./scripts/showStatistics.php
49278ae3008d2e2c54d39c1817a8c249 ./skins/Narrow/._css.php
62498637efe9636e86f805ff75ab327b ./skins/Narrow/css.php
d642a25efb891e51471fc4c7636da885 ./skins/Narrow/skin.html
934539b31eddb5d542009a3b147fa4a0 ./skins/Narrow/skin.php
cf10eaf3365b717c7b73299e786b40d0 ./skins/Narrow/skin.php

View File

@ -1582,12 +1582,12 @@ function displayPopup($template) {
$card .= "<tr><td class='popupTableLeft'>".tr("Max OS")."</td><td class='popupTableRight'>$MaxVer</td></tr>";
}
$Licence = $Licence ?? ($License ?? "");
if ( $Licence )
if ( $Licence ) {
if ( validURL($Licence) )
$Licence = "<img class='licence' src='$Licence' onerror='this.outerHTML=&quot;<a href=$Licence target=_blank>".tr("Click Here")."</a>&quot;;this.onerror=null;' ></img>";
$card .= "<tr><td class='popupTableLeft'>".tr("Licence")."</td><td class='popupTableRight'>$Licence</td></tr>";
}
$card .= "</table>";
if ( $Repo || $Private ) {
$remoteIconPrefix = startsWith($ProfileIcon,"http") ? "<a class='screenshot mfp-image' href='$ProfileIcon'>" : "";

BIN
webImages/1619_V.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 KiB