-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 2.5.0
-
Component/s: Plugin Development
-
None
<web-item key="stash.pull-request.handbrake.on" name="Pull Request Handbrake On"
weight="11" section="stash.pull-request.toolbar.actions">
<conditions type="AND">
<condition class="com.atlassian.stash.web.conditions.PullRequestInState">
<param name="state">OPEN</param>
</condition>
<condition class="com.atlassian.stash.web.conditions.CanMergePullRequestCondition"/>
<condition class="ru.yandex.stash.plugin.pull.handbrake.web.conditions.HasPullRequestHandbrakeOnCondition"
invert="true" />
</conditions>
<label key="stash.web.pull-request.toolbar.handbrake">Handbrake</label>
<tooltip key="stash.web.pull-request.toolbar.handbrake.on.tooltip">Disallow merging</tooltip>
<styleClass>pull-request-handbrake</styleClass>
</web-item>
<web-item key="stash.pull-request.handbrake.off" name="Pull Request Handbrake Off"
weight="11" section="stash.pull-request.toolbar.actions">
<conditions type="AND">
<condition class="com.atlassian.stash.web.conditions.PullRequestInState">
<param name="state">OPEN</param>
</condition>
<condition class="com.atlassian.stash.web.conditions.CanMergePullRequestCondition"/>
<condition class="ru.yandex.stash.plugin.pull.handbrake.web.conditions.HasPullRequestHandbrakeOnCondition"/>
</conditions>
<param name="stashButtonActive" value="true"/>
<label key="stash.web.pull-request.toolbar.handbrake">Handbrake</label>
<tooltip key="stash.web.pull-request.toolbar.handbrake.off.tooltip">Allow merging</tooltip>
<styleClass>pull-request-handbrake mode-enabled</styleClass>
</web-item>
LESS:
// Box Shadows .box-shadow(@boxshadow: 0 0 5px rgba(111, 111, 111, 0.15)) { -webkit-box-shadow: @boxshadow; box-shadow: @boxshadow; } .button-coloring(@bg-color, @text-color) { &.mode-enabled[aria-pressed=true] { border-color: darken(@bg-color, 12%); text-shadow: 0 1px 0 darken(@bg-color, 7%); background: @bg-color; color: @text-color; .box-shadow(inset 0 3px 6px darken(@bg-color, 7%)); } } .pull-request-handbrake { .button-coloring(#891b1a, #fff) }
The result is on screenshot.