admin/plugins: Don't keep adding more Update buttons
parent
6a00d7f8d6
commit
aa41b0920c
|
@ -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'));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue