Display plugins in monitor mode, suppress details dialog

This commit is contained in:
billz 2025-02-04 23:45:06 -08:00
parent 0efbe2b326
commit 8a8be213f7
2 changed files with 12 additions and 12 deletions

View File

@ -390,7 +390,7 @@ class PluginInstaller
$button = '<button type="button" class="btn btn-outline btn-primary btn-sm text-nowrap"
name="plugin-details" data-bs-toggle="modal" data-bs-target="#install-user-plugin"
data-plugin-manifest="' .$manifest. '" data-plugin-installed="' .$installed. '"> ' . _("Installed") .'</button>';
} else {
} elseif (!RASPI_MONITOR_ENABLED) {
$button = '<button type="button" class="btn btn-outline btn-primary btn-sm text-nowrap"
name="install-plugin" data-bs-toggle="modal" data-bs-target="#install-user-plugin"
data-plugin-manifest="' .$manifest. '"> ' . _("Details") .'</button>';

View File

@ -1,19 +1,19 @@
<!-- plugins tab -->
<div role="tabpanel" class="tab-pane" id="plugins">
<h4 class="mt-3"><?php echo _("Plugins") ;?></h4>
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<?php echo CSRFTokenFieldTag() ?>
<div class="row">
<div class="form-group col-lg-8 col-md-8">
<label>
<?php echo _("The following user plugins are available to extend RaspAP's functionality."); ?>
</label>
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<div class="small mt-2">
<?php echo _("Choose <strong>Details</strong> for more information and to install a plugin."); ?>
</div>
<?php endif ?>
<?php echo $pluginsTable; ?>
</div>
</div>
<?php endif ?>
</div>