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