diff --git a/src/main/resources/pr-triggerbutton.js b/src/main/resources/pr-triggerbutton.js index adaf3b8..854d151 100644 --- a/src/main/resources/pr-triggerbutton.js +++ b/src/main/resources/pr-triggerbutton.js @@ -11,7 +11,7 @@ define('plugin/prnfb/pr-triggerbutton', [ var $buttonArea = $(".triggerManualNotification").closest('ul'); var buttonTemplate = function(name) { - return $('
  • '); + return $('
  • '); }; var dialogTemplate = function(name, content) { @@ -209,6 +209,7 @@ define('plugin/prnfb/pr-triggerbutton', [ function loadSettingsAndShowButtons() { $.get(buttonsAdminUrl + '/repository/' + pageState.getRepository().id + '/pullrequest/' + pageState.getPullRequest().id, function(settings) { + $buttonArea.find('.prnfb-button').remove(); settings.forEach(function(item) { var $buttonDropdownItem = buttonTemplate(item.name.replace(/