Skip to content
Snippets Groups Projects

Import Groups page: Add icon with tooltip to table header

All threads resolved!
1 file
+ 9
3
Compare changes
  • Side-by-side
  • Inline
@@ -10,6 +10,7 @@ import {
@@ -10,6 +10,7 @@ import {
GlSprintf,
GlSprintf,
GlTable,
GlTable,
GlFormCheckbox,
GlFormCheckbox,
 
GlTooltipDirective,
} from '@gitlab/ui';
} from '@gitlab/ui';
import { debounce } from 'lodash';
import { debounce } from 'lodash';
import { createAlert } from '~/flash';
import { createAlert } from '~/flash';
@@ -60,7 +61,9 @@ export default {
@@ -60,7 +61,9 @@ export default {
PaginationBar,
PaginationBar,
HelpPopover,
HelpPopover,
},
},
directives: {
 
GlTooltip: GlTooltipDirective,
 
},
props: {
props: {
sourceUrl: {
sourceUrl: {
type: String,
type: String,
@@ -118,14 +121,14 @@ export default {
@@ -118,14 +121,14 @@ export default {
},
},
{
{
key: 'webUrl',
key: 'webUrl',
label: s__('BulkImport|From source group'),
label: s__('BulkImport|Source group'),
thClass: `${DEFAULT_TH_CLASSES} gl-pl-0! import-jobs-from-col`,
thClass: `${DEFAULT_TH_CLASSES} gl-pl-0! import-jobs-from-col`,
// eslint-disable-next-line @gitlab/require-i18n-strings
// eslint-disable-next-line @gitlab/require-i18n-strings
tdClass: `${DEFAULT_TD_CLASSES} gl-pl-0!`,
tdClass: `${DEFAULT_TD_CLASSES} gl-pl-0!`,
},
},
{
{
key: 'importTarget',
key: 'importTarget',
label: s__('BulkImport|To new group'),
label: s__('BulkImport|New group'),
thClass: `${DEFAULT_TH_CLASSES} import-jobs-to-col`,
thClass: `${DEFAULT_TH_CLASSES} import-jobs-to-col`,
tdClass: DEFAULT_TD_CLASSES,
tdClass: DEFAULT_TD_CLASSES,
},
},
@@ -665,6 +668,9 @@ export default {
@@ -665,6 +668,9 @@ export default {
@change="hasAllAvailableGroupsSelected ? clearSelected() : selectAllRows()"
@change="hasAllAvailableGroupsSelected ? clearSelected() : selectAllRows()"
/>
/>
</template>
</template>
 
<template #head(importTarget)="data">
 
<span class="gl-mr-2">{{ data.label }}</span><gl-icon name="information" :size="12" v-gl-tooltip="s_('BulkImport|The path of the new group.')"/>
 
</template>
<template #cell(selected)="{ rowSelected, selectRow, unselectRow, item: group }">
<template #cell(selected)="{ rowSelected, selectRow, unselectRow, item: group }">
<gl-form-checkbox
<gl-form-checkbox
class="gl-h-7 gl-pt-3"
class="gl-h-7 gl-pt-3"
Loading