mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
26 lines
563 B
JavaScript
26 lines
563 B
JavaScript
{% load i18n %}
|
|
{% load inventree_extras %}
|
|
|
|
/* globals
|
|
constructForm,
|
|
*/
|
|
|
|
/* exported
|
|
installPlugin,
|
|
*/
|
|
|
|
function installPlugin() {
|
|
constructForm(`/api/plugin/install/`, {
|
|
method: 'POST',
|
|
title: '{% trans "Install Plugin" %}',
|
|
fields: {
|
|
url: {},
|
|
packagename: {},
|
|
confirm: {},
|
|
},
|
|
onSuccess: function(data) {
|
|
msg = '{% trans "The Plugin was installed" %}';
|
|
showMessage(msg, {style: 'success', details: data.result, timeout: 30000});
|
|
}
|
|
});
|
|
} |