From 01ddf6f4eaf6f455f716537572a82d79f705f0f5 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 18 Feb 2025 01:16:16 -0800 Subject: [PATCH] Update plugin details w/ javascript, default to none --- app/js/custom.js | 7 ++++--- templates/system.php | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/js/custom.js b/app/js/custom.js index cbf26fa9..5ef39071 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -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) { diff --git a/templates/system.php b/templates/system.php index 7f22be09..93efb450 100755 --- a/templates/system.php +++ b/templates/system.php @@ -154,6 +154,10 @@ + + + +