Fixed: When multiple instances were installed, uninstalling one of them directly from the card could uninstall the other one instead
This commit is contained in:
parent
f1d973846d
commit
daec060279
BIN
archive/community.applications-2021.11.27-x86_64-1.txz
Normal file
BIN
archive/community.applications-2021.11.27-x86_64-1.txz
Normal file
Binary file not shown.
@ -22,4 +22,4 @@ e3dc9ed23036a09d69d5cd5c3111751e ./scripts/showStatistics.php
|
||||
2bd671daecaf01549f8cc0202cb184b3 ./scripts/updatePluginSupport.php
|
||||
a8900ea90ba3a4937a4648ae92f9e848 ./skins/Narrow/css.php
|
||||
cfa1511913f794c8c5980460dfcdf049 ./skins/Narrow/skin.html
|
||||
26d44a94d370dc23bf96ec4909fb856a ./skins/Narrow/skin.php
|
||||
739bf48e904a23e1e872b94589ccf9fa ./skins/Narrow/skin.php
|
||||
|
@ -105,7 +105,7 @@ function my_display_apps($file,$pageNumber=1,$selectedApps=false,$startup=false)
|
||||
foreach ($info as $testDocker) {
|
||||
$tmpRepo = strpos($template['Repository'],":") ? $template['Repository'] : $template['Repository'].":latest";
|
||||
$tmpRepo = strpos($tmpRepo,"/") ? $tmpRepo : "library/$tmpRepo";
|
||||
if ( ($tmpRepo == $testDocker['Image'] || "{$tmpRepo}:latest" == $testDocker['Image']) && ($template['Name'] == $testDocker['Name']) ) {
|
||||
if ( ( ($tmpRepo == $testDocker['Image'] && $template['Name'] == $testDocker['Name']) || "{$tmpRepo}:latest" == $testDocker['Image']) && ($template['Name'] == $testDocker['Name']) ) {
|
||||
$selected = true;
|
||||
$name = $testDocker['Name'];
|
||||
break;
|
||||
@ -977,7 +977,7 @@ function displayCard($template) {
|
||||
$card .= "<div class='supportButton'><span class='ca_href' data-href='{$supportContext[0]['link']}' data-target='_blank'>{$supportContext[0]['text']}</span></div>";
|
||||
elseif (!empty($supportContext))
|
||||
$card .= "
|
||||
<div class='supportButton supportButtonCardContext' id='support$ID' data-context='".json_encode($supportContext)."'>".tr("Support")."</div>
|
||||
<div class='supportButton supportButtonCardContext' id='support".preg_replace("/[^a-zA-Z0-9]+/", "",$Name)."$ID' data-context='".json_encode($supportContext)."'>".tr("Support")."</div>
|
||||
";
|
||||
|
||||
if ( $class == "spotlightHome" ) {
|
||||
@ -985,7 +985,7 @@ function displayCard($template) {
|
||||
if ( count($actionsContext) == 1)
|
||||
$card .= "<div class='actionsButton' onclick={$actionsContext[0]['action']}>{$actionsContext[0]['text']}</div>";
|
||||
else
|
||||
$card .= "<div class='actionsButton actionsButtonContext' id='actions$ID' data-context='".json_encode($actionsContext,JSON_HEX_QUOT | JSON_HEX_APOS)."'>".tr("Actions")."</div>";
|
||||
$card .= "<div class='actionsButton actionsButtonContext' id='actions".preg_replace("/[^a-zA-Z0-9]+/", "",$Name)."$ID' data-context='".json_encode($actionsContext,JSON_HEX_QUOT | JSON_HEX_APOS)."'>".tr("Actions")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user