Skip to content

Commit

Permalink
feat: disable the merge method button
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvanduocit committed Oct 4, 2017
1 parent 6bcc07d commit e066084
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/scripts/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
var $container = $('#js-repo-pjax-container');
var issueTitle = $container.find('.js-issue-title').text();
var $buttonMerge = $container.find('.merge-message button[data-details-container]');
var $buttonMergeOption = $container.find('.merge-message button[data-details-container] + .select-menu-button');
var disabled = false;
var buttonHtml = '';

Expand Down Expand Up @@ -50,6 +51,7 @@
}

$buttonMerge.attr('disabled', disabled);
$buttonMergeOption.attr('disabled', disabled);
$buttonMerge.html(buttonHtml);
});
};
Expand Down

0 comments on commit e066084

Please # to comment.