mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 06:06:13 +02:00
admin/plugins: Don't keep adding more Update buttons
This commit is contained in:
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…
x
Reference in New Issue
Block a user