From aa41b0920c256f25ff209e8a1ad98bc548914c76 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 27 Nov 2020 11:04:05 -0500 Subject: [PATCH] admin/plugins: Don't keep adding more Update buttons --- src/static/js/admin/plugins.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index fc3a951d9..33abd1318 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -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( $('').addClass('do-update').attr('type', 'button').attr('value', 'Update')); });