related to #1596 Removed switch on 'Other' plugins + fix actualize filter bug

This commit is contained in:
Matthieu Leproux
2022-01-10 11:33:19 +01:00
parent ffa4519da1
commit a322f3201c
2 changed files with 4 additions and 3 deletions

View File

@@ -211,10 +211,10 @@ function uninstallPlugin(id) {
pwg_token: pwg_token,
format: 'json' },
success: function (data) {
$("#"+id).remove();
nb_plugin.other -=1;
nb_plugin.all -=1;
actualizeFilter();
$("#"+id).remove();
},
error: function (e) {
console.log(e);

View File

@@ -263,7 +263,7 @@ function actualizeFilter() {
$("label[for='seeInactive'] .filter-badge").html(nb_plugin.inactive);
$("label[for='seeOther'] .filter-badge").html(nb_plugin.other);
console.log(nb_plugin)
//console.log(nb_plugin)
$(".filterLabel").show();
$(".pluginMiniBox").each(function () {
@@ -379,11 +379,12 @@ jQuery(".pluginMiniBox").each(function(index){
<a class="icon-ellipsis-v showOptions showInfo" ></a>
{/if}
</div>
{if $plugin.STATE == 'active' || $plugin.STATE == 'inactive'}
<label class="switch">
<input type="checkbox" id="toggleSelectionMode" {if {$plugin.STATE} === "active"}checked{/if}>
<span class="slider round"></span>
</label>
{/if}
<div class="pluginActionsSmallIcons">
{if $plugin.STATE == 'active'}