mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Update w/ link to plugin_uri
This commit is contained in:
@@ -473,6 +473,10 @@ $('#install-user-plugin').on('shown.bs.modal', function (e) {
|
||||
var manifestData = button.data('plugin-manifest');
|
||||
|
||||
if (manifestData) {
|
||||
$('#plugin-uri').html(manifestData.plugin_uri
|
||||
? `<a href="${manifestData.plugin_uri}" target="_blank">${manifestData.plugin_uri}</a>`
|
||||
: 'Unknown'
|
||||
);
|
||||
$('#plugin-icon').attr('class', `${manifestData.icon || 'fas fa-plug'} link-secondary h5 me-2`);
|
||||
$('#plugin-name').text(manifestData.name || 'Unknown');
|
||||
$('#plugin-version').text(manifestData.version || 'Unknown');
|
||||
@@ -487,7 +491,6 @@ $('#install-user-plugin').on('shown.bs.modal', function (e) {
|
||||
$('#plugin-dependencies').html(formatProperty(manifestData.dependencies || {}));
|
||||
$('#plugin-sudoers').html(formatProperty(manifestData.sudoers || []));
|
||||
$('#plugin-user-name').html(manifestData.user_nonprivileged.name || {});
|
||||
console.log(manifestData);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user