Fix reported errors

- Regrouped import statements
- Localized 'Export' string and updated POT file
- Prettified file
- Updated Jest snapshots
parent 9bae9b74
......@@ -2,6 +2,7 @@
import { mapActions, mapState } from 'vuex';
import {
GlDeprecatedButton,
GlButton,
GlDeprecatedDropdown,
GlDeprecatedDropdownItem,
GlIcon,
......@@ -9,12 +10,12 @@ import {
} from '@gitlab/ui';
import { DEPENDENCY_LIST_TYPES } from '../store/constants';
import { SORT_FIELDS, SORT_ORDER } from '../store/modules/list/constants';
import {GlButton} from '@gitlab/ui';
export default {
name: 'DependenciesActions',
components: {
GlDeprecatedButton,
GlButton,
GlButton,
GlDeprecatedDropdown,
GlDeprecatedDropdownItem,
GlIcon,
......@@ -98,7 +99,7 @@ export default {
<gl-icon :name="sortOrderIcon" />
</gl-deprecated-button>
</div>
<gl-button
<gl-button
v-gl-tooltip
:href="downloadEndpoint"
download="dependencies.json"
......@@ -106,7 +107,7 @@ export default {
class="js-download"
icon="export"
>
Export
</gl-button>
{{ __('Export') }}
</gl-button>
</div>
</template>
......@@ -69,18 +69,19 @@ exports[`DependenciesActions component matches the snapshot 1`] = `
</gl-deprecated-button-stub>
</div>
<gl-deprecated-button-stub
<gl-button-stub
category="tertiary"
class="js-download"
download="dependencies.json"
href="http://test.host/dependencies.json"
size="md"
icon="export"
size="medium"
title="Export as JSON"
variant="secondary"
variant="default"
>
<gl-icon-stub
name="export"
size="16"
/>
</gl-deprecated-button-stub>
Export
</gl-button-stub>
</div>
`;
......@@ -9886,6 +9886,9 @@ msgstr ""
msgid "Explore public groups"
msgstr ""
msgid "Export"
msgstr ""
msgid "Export as CSV"
msgstr ""
......
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