Update plugin details w/ javascript, default to none

This commit is contained in:
billz
2025-02-18 01:16:16 -08:00
parent 4374e78bbb
commit 01ddf6f4ea
2 changed files with 8 additions and 3 deletions

View File

@@ -488,9 +488,10 @@ $('#install-user-plugin').on('shown.bs.modal', function (e) {
);
$('#plugin-license').text(manifestData.license || 'Unknown');
$('#plugin-locale').text(manifestData.default_locale || 'Unknown');
$('#plugin-configuration').html(formatProperty(manifestData.configuration || {}));
$('#plugin-dependencies').html(formatProperty(manifestData.dependencies || {}));
$('#plugin-sudoers').html(formatProperty(manifestData.sudoers || []));
$('#plugin-configuration').html(formatProperty(manifestData.configuration || 'None'));
$('#plugin-dependencies').html(formatProperty(manifestData.dependencies || 'None'));
$('#plugin-javascript').html(formatProperty(manifestData.javascript || 'None'));
$('#plugin-sudoers').html(formatProperty(manifestData.sudoers || 'None'));
$('#plugin-user-name').html(manifestData.user_nonprivileged.name || 'None');
}
if (installed) {

View File

@@ -154,6 +154,10 @@
<th><?php echo _("Dependencies"); ?></th>
<td><small><code><span id="plugin-dependencies" class="mb-0"></span></code></small></td>
</tr>
<tr>
<th><?php echo _("JavaScript"); ?></th>
<td><small><code><span id="plugin-javascript" class="mb-0"></span></code></small></td>
</tr>
<tr>
<th><?php echo _("Permissions"); ?></th>
<td><small><code><span id="plugin-sudoers" class="mb-0"></span></code></small></td>