Commit 95cd7efa authored by Taurie Davis's avatar Taurie Davis

Migrate loading button for discarding batch reviews

parent 07c16be9
<script> <script>
import { mapActions, mapState, mapGetters } from 'vuex'; import { mapActions, mapState, mapGetters } from 'vuex';
import { GlModal, GlModalDirective } from '@gitlab/ui'; import { GlModal, GlModalDirective, GlButton } from '@gitlab/ui';
import { sprintf, s__ } from '~/locale'; import { sprintf, s__ } from '~/locale';
import LoadingButton from '~/vue_shared/components/loading_button.vue';
import PreviewDropdown from './preview_dropdown.vue'; import PreviewDropdown from './preview_dropdown.vue';
export default { export default {
components: { components: {
LoadingButton, GlButton,
GlModal, GlModal,
PreviewDropdown, PreviewDropdown,
}, },
...@@ -48,12 +47,13 @@ export default { ...@@ -48,12 +47,13 @@ export default {
<nav class="review-bar-component"> <nav class="review-bar-component">
<div class="review-bar-content qa-review-bar"> <div class="review-bar-content qa-review-bar">
<preview-dropdown /> <preview-dropdown />
<loading-button <gl-button
v-gl-modal="$options.modalId" v-gl-modal="$options.modalId"
:loading="isDiscarding" :loading="isDiscarding"
:label="__('Discard review')"
class="qa-discard-review float-right" class="qa-discard-review float-right"
/> >
{{ __('Discard review') }}
</gl-button>
</div> </div>
</nav> </nav>
<gl-modal <gl-modal
......
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