Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
Adding previously uncommitted change for #197
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Mar 7, 2017
1 parent cb3f1d6 commit ba71289
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Changelog of Pull Request Notifier for Bitbucket.

## Unreleased
### No issue
doc

[cb3f1d638bcf213](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/cb3f1d638bcf213) Tomas Bjerre *2017-03-07 16:03:09*

## 2.59
### GitHub [#197](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/197) Button not displaying on PRs which are merged
Another attempt on fixing button issue
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/atlassian-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<client-web-item key="se.bjurr.prnfb.triggerbutton" name="Trigger Notification" weight="50" section="bitbucket.pullrequest.action">
<dependency>${project.groupId}-${project.artifactId}:pr-triggerbutton</dependency>
<label key="bitbucket.web.pull-request.toolbar.triggerbutton"></label>
<label key="bitbucket.web.pull-request.toolbar.triggerbutton">pr-triggerbutton</label>
</client-web-item>

<web-resource key="pr-triggerbutton">
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/pr-triggerbutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ define('plugin/prnfb/pr-triggerbutton', [
var waiting = '<span class="aui-icon aui-icon-wait aui-icon-small">Wait</span>';
var $buttonArea = $('#pull-request-header-more').find('.aui-button').first().closest('ul');
$buttonArea.find('.aui-button').each(function(index, auiButton) {
if ($(auiButton).text().trim() === '') {
var buttonText = $(auiButton).text().trim();
if (buttonText === '' || buttonText === 'pr-triggerbutton') {
//An empty button is added by 'client-web-item' in atlassian-plugin.xml
auiButton.remove();
}
Expand Down

0 comments on commit ba71289

Please sign in to comment.