Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-01 09:09:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-01 09:09:29 +0300
commit2db9c1eee29dbd6e2592627bca55fa084f36d6d5 (patch)
tree8f71fe6e7abb62e6da66efaf773563109a4681f6 /app/assets/javascripts/issuable
parent4223ed2e83401f32f60d9de549d9c33cb376757a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/issuable')
-rw-r--r--app/assets/javascripts/issuable/components/csv_import_export_buttons.vue12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/assets/javascripts/issuable/components/csv_import_export_buttons.vue b/app/assets/javascripts/issuable/components/csv_import_export_buttons.vue
index bbf4160ce35..14474d44e10 100644
--- a/app/assets/javascripts/issuable/components/csv_import_export_buttons.vue
+++ b/app/assets/javascripts/issuable/components/csv_import_export_buttons.vue
@@ -13,6 +13,10 @@ import CsvExportModal from './csv_export_modal.vue';
import CsvImportModal from './csv_import_modal.vue';
export default {
+ i18n: {
+ exportAsCsvButtonText: __('Export as CSV'),
+ importIssuesText: __('Import issues'),
+ },
name: 'CsvImportExportButtons',
components: {
GlButtonGroup,
@@ -57,16 +61,15 @@ export default {
return `${this.issuableType}-import-modal`;
},
importButtonText() {
- return this.showLabel ? this.$options.importIssuesText : null;
+ return this.showLabel ? this.$options.i18n.importIssuesText : null;
},
importButtonTooltipText() {
- return this.showLabel ? null : this.$options.importIssuesText;
+ return this.showLabel ? null : this.$options.i18n.importIssuesText;
},
importButtonIcon() {
return this.showLabel ? null : 'import';
},
},
- importIssuesText: __('Import issues'),
};
</script>
@@ -75,9 +78,10 @@ export default {
<gl-button-group>
<gl-button
v-if="showExportButton"
- v-gl-tooltip.hover="__('Export as CSV')"
+ v-gl-tooltip.hover="$options.i18n.exportAsCsvButtonText"
v-gl-modal="exportModalId"
icon="export"
+ :aria-label="$options.i18n.exportAsCsvButtonText"
data-qa-selector="export_as_csv_button"
data-testid="export-csv-button"
/>