admin/plugins: Don't keep adding more Update buttons

plugins-hanging
Richard Hansen 2020-11-27 11:04:05 -05:00 committed by John McLear
parent 6a00d7f8d6
commit aa41b0920c
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ $(document).ready(() => {
socket.on('results:updatable', (data) => {
data.updatable.forEach((pluginName) => {
const actions = $(`#installed-plugins > tr.${pluginName} .actions`);
actions.find('.do-update').remove();
actions.append(
$('<input>').addClass('do-update').attr('type', 'button').attr('value', 'Update'));
});