Fix Web IDE tooltip if button is disabled

parent e799b6f3
...@@ -133,19 +133,24 @@ export default { ...@@ -133,19 +133,24 @@ export default {
<div class="branch-actions d-flex"> <div class="branch-actions d-flex">
<template v-if="mr.isOpen"> <template v-if="mr.isOpen">
<gl-button <span
v-if="!mr.sourceBranchRemoved" v-if="!mr.sourceBranchRemoved"
v-gl-tooltip v-gl-tooltip
:href="webIdePath"
:title="ideButtonTitle" :title="ideButtonTitle"
class="gl-display-none d-md-inline-block gl-mr-3"
tabindex="0"
>
<gl-button
:href="mr.canPushToSourceBranch ? webIdePath : null"
:disabled="!mr.canPushToSourceBranch" :disabled="!mr.canPushToSourceBranch"
class="js-web-ide gl-display-none d-md-inline-block gl-mr-3" class="js-web-ide"
tabindex="0" tabindex="0"
role="button" role="button"
data-qa-selector="open_in_web_ide_button" data-qa-selector="open_in_web_ide_button"
> >
{{ s__('mrWidget|Open in Web IDE') }} {{ s__('mrWidget|Open in Web IDE') }}
</gl-button> </gl-button>
</span>
<gl-button <gl-button
:disabled="mr.sourceBranchRemoved" :disabled="mr.sourceBranchRemoved"
data-target="#modal_merge_info" data-target="#modal_merge_info"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment