Commit c6e2307a authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '229288-migrate-related-issues-remove-button' into 'master'

Migrate the remove button within related issues form

Closes #229288

See merge request gitlab-org/gitlab!41936
parents 3af61986 716fd7ce
<script> <script>
/* eslint-disable vue/no-v-html */ /* eslint-disable vue/no-v-html */
import '~/commons/bootstrap'; import '~/commons/bootstrap';
import { GlIcon, GlTooltip, GlTooltipDirective } from '@gitlab/ui'; import { GlIcon, GlTooltip, GlTooltipDirective, GlButton } from '@gitlab/ui';
import { sprintf } from '~/locale'; import { sprintf } from '~/locale';
import IssueMilestone from './issue_milestone.vue'; import IssueMilestone from './issue_milestone.vue';
import IssueAssignees from './issue_assignees.vue'; import IssueAssignees from './issue_assignees.vue';
...@@ -19,6 +19,7 @@ export default { ...@@ -19,6 +19,7 @@ export default {
GlTooltip, GlTooltip,
IssueWeight: () => import('ee_component/boards/components/issue_card_weight.vue'), IssueWeight: () => import('ee_component/boards/components/issue_card_weight.vue'),
IssueDueDate, IssueDueDate,
GlButton,
}, },
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
...@@ -176,19 +177,18 @@ export default { ...@@ -176,19 +177,18 @@ export default {
> >
<gl-icon name="lock" /> <gl-icon name="lock" />
</span> </span>
<button <gl-button
v-else-if="canRemove" v-else-if="canRemove"
ref="removeButton" ref="removeButton"
v-gl-tooltip v-gl-tooltip
icon="close"
category="tertiary"
:disabled="removeDisabled" :disabled="removeDisabled"
type="button" class="js-issue-item-remove-button gl-ml-3"
class="btn btn-default btn-svg btn-item-remove js-issue-item-remove-button"
data-qa-selector="remove_related_issue_button" data-qa-selector="remove_related_issue_button"
:title="__('Remove')" :title="__('Remove')"
:aria-label="__('Remove')" :aria-label="__('Remove')"
@click="onRemoveRequest" @click="onRemoveRequest"
> />
<gl-icon class="btn-item-remove-icon" name="close" />
</button>
</div> </div>
</template> </template>
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