Commit 273691f7 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'show-banner-export' into 'master'

Show CSV has been exported banner on export

See merge request gitlab-org/gitlab!55965
parents e705da85 489d9d9e
......@@ -144,7 +144,7 @@ export default {
>{{ __('Select all') }}</gl-form-checkbox
>
</div>
<div class="gl-pt-5 gl-pb-4 scrollbox-body">
<div class="gl-pt-5 gl-pb-4 gl-pl-6 scrollbox-body">
<gl-form-checkbox
v-for="field in $options.fields"
:key="field.key"
......
<script>
import { GlPagination } from '@gitlab/ui';
import { GlPagination, GlAlert } from '@gitlab/ui';
import Api from '~/api';
import createFlash, { FLASH_TYPES } from '~/flash';
import axios from '~/lib/utils/axios_utils';
......@@ -39,6 +39,7 @@ export default {
AvailableSortOptions,
components: {
GlPagination,
GlAlert,
FilteredSearchBar,
RequirementsTabs,
RequirementsLoading,
......@@ -234,6 +235,7 @@ export default {
ARCHIVED: this.initialRequirementsCount[FilterState.archived],
ALL: this.initialRequirementsCount[FilterState.all],
},
alert: null,
};
},
computed: {
......@@ -455,6 +457,15 @@ export default {
selectedFields,
},
})
.then(() => {
this.alert = {
variant: 'info',
message: sprintf(
__('Your CSV export has started. It will be emailed to %{email} when complete.'),
{ email: this.currentUserEmail },
),
};
})
.catch((e) => {
createFlash({
message: __('Something went wrong while exporting requirements'),
......@@ -675,6 +686,16 @@ export default {
<template>
<div class="requirements-list-container">
<gl-alert
v-if="alert"
:variant="alert.variant"
:dismissible="true"
class="gl-mt-3 gl-mb-4"
@dismiss="alert = null"
>
{{ alert.message }}
</gl-alert>
<requirements-tabs
:filter-by="filterBy"
:requirements-count="requirementsCount"
......
---
title: Show CSV has been exported banner on export
merge_request: 55965
author:
type: changed
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