Fix reported errors

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