Commit 6e73a1ad authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch...

Merge branch '229298-migrate-bootstrap-button-to-gitlab-ui-glbutton-in-app-assets-javascripts' into 'master'

Resolve "Migrate Bootstrap button to GitLab UI GlButton in app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_merged.vue"

Closes #229298

See merge request gitlab-org/gitlab!40224
parents 25b68361 f0b17e41
<script> <script>
/* eslint-disable @gitlab/vue-require-i18n-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlLoadingIcon } from '@gitlab/ui'; import { GlLoadingIcon, GlButton } from '@gitlab/ui';
import { deprecatedCreateFlash as Flash } from '~/flash'; import { deprecatedCreateFlash as Flash } from '~/flash';
import tooltip from '~/vue_shared/directives/tooltip'; import tooltip from '~/vue_shared/directives/tooltip';
import { s__, __ } from '~/locale'; import { s__, __ } from '~/locale';
...@@ -19,6 +19,7 @@ export default { ...@@ -19,6 +19,7 @@ export default {
statusIcon, statusIcon,
ClipboardButton, ClipboardButton,
GlLoadingIcon, GlLoadingIcon,
GlButton,
}, },
props: { props: {
mr: { mr: {
...@@ -112,48 +113,52 @@ export default { ...@@ -112,48 +113,52 @@ export default {
:date-title="mr.metrics.mergedAt" :date-title="mr.metrics.mergedAt"
:date-readable="mr.metrics.readableMergedAt" :date-readable="mr.metrics.readableMergedAt"
/> />
<a <gl-button
v-if="mr.canRevertInCurrentMR" v-if="mr.canRevertInCurrentMR"
v-tooltip v-tooltip
:title="revertTitle" :title="revertTitle"
class="btn btn-close btn-sm" size="small"
category="secondary"
variant="warning"
href="#modal-revert-commit" href="#modal-revert-commit"
data-toggle="modal" data-toggle="modal"
data-container="body" data-container="body"
> >
{{ revertLabel }} {{ revertLabel }}
</a> </gl-button>
<a <gl-button
v-else-if="mr.revertInForkPath" v-else-if="mr.revertInForkPath"
v-tooltip v-tooltip
:href="mr.revertInForkPath" :href="mr.revertInForkPath"
:title="revertTitle" :title="revertTitle"
class="btn btn-close btn-sm" size="small"
category="secondary"
variant="warning"
data-method="post" data-method="post"
> >
{{ revertLabel }} {{ revertLabel }}
</a> </gl-button>
<a <gl-button
v-if="mr.canCherryPickInCurrentMR" v-if="mr.canCherryPickInCurrentMR"
v-tooltip v-tooltip
:title="cherryPickTitle" :title="cherryPickTitle"
class="btn btn-default btn-sm" size="small"
href="#modal-cherry-pick-commit" href="#modal-cherry-pick-commit"
data-toggle="modal" data-toggle="modal"
data-container="body" data-container="body"
> >
{{ cherryPickLabel }} {{ cherryPickLabel }}
</a> </gl-button>
<a <gl-button
v-else-if="mr.cherryPickInForkPath" v-else-if="mr.cherryPickInForkPath"
v-tooltip v-tooltip
:href="mr.cherryPickInForkPath" :href="mr.cherryPickInForkPath"
:title="cherryPickTitle" :title="cherryPickTitle"
class="btn btn-default btn-sm" size="small"
data-method="post" data-method="post"
> >
{{ cherryPickLabel }} {{ cherryPickLabel }}
</a> </gl-button>
</div> </div>
<section class="mr-info-list" data-qa-selector="merged_status_content"> <section class="mr-info-list" data-qa-selector="merged_status_content">
<p> <p>
...@@ -181,14 +186,14 @@ export default { ...@@ -181,14 +186,14 @@ export default {
</p> </p>
<p v-if="shouldShowRemoveSourceBranch" class="space-children"> <p v-if="shouldShowRemoveSourceBranch" class="space-children">
<span>{{ s__('mrWidget|You can delete the source branch now') }}</span> <span>{{ s__('mrWidget|You can delete the source branch now') }}</span>
<button <gl-button
:disabled="isMakingRequest" :disabled="isMakingRequest"
type="button" size="small"
class="btn btn-sm btn-default js-remove-branch-button" class="js-remove-branch-button"
@click="removeSourceBranch" @click="removeSourceBranch"
> >
{{ s__('mrWidget|Delete source branch') }} {{ s__('mrWidget|Delete source branch') }}
</button> </gl-button>
</p> </p>
<p v-if="shouldShowSourceBranchRemoving"> <p v-if="shouldShowSourceBranchRemoving">
<gl-loading-icon :inline="true" /> <gl-loading-icon :inline="true" />
......
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