Commit f0b68d76 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '608-button-migration-rename-gl-new-button-gitlab-ui-integration-test' into 'master'

Upgrade @gitlab/ui to v12

See merge request gitlab-org/gitlab!29343
parents 08e01d45 0aba3e83
<script> <script>
import { GlAvatar, GlNewButton, GlFormGroup, GlFormSelect, GlLabel } from '@gitlab/ui'; import { GlAvatar, GlButton, GlFormGroup, GlFormSelect, GlLabel } from '@gitlab/ui';
export default { export default {
name: 'JiraImportForm', name: 'JiraImportForm',
components: { components: {
GlAvatar, GlAvatar,
GlNewButton, GlButton,
GlFormGroup, GlFormGroup,
GlFormSelect, GlFormSelect,
GlLabel, GlLabel,
...@@ -86,8 +86,8 @@ export default { ...@@ -86,8 +86,8 @@ export default {
</gl-form-group> </gl-form-group>
<div class="footer-block row-content-block d-flex justify-content-between"> <div class="footer-block row-content-block d-flex justify-content-between">
<gl-new-button category="primary" variant="success">{{ __('Next') }}</gl-new-button> <gl-button category="primary" variant="success">{{ __('Next') }}</gl-button>
<gl-new-button>{{ __('Cancel') }}</gl-new-button> <gl-button>{{ __('Cancel') }}</gl-button>
</div> </div>
</form> </form>
</div> </div>
......
<script> <script>
import { mapState, mapActions, mapGetters } from 'vuex'; import { mapState, mapActions, mapGetters } from 'vuex';
import { GlNewButton, GlFormInput, GlFormGroup } from '@gitlab/ui'; import { GlButton, GlFormInput, GlFormGroup } from '@gitlab/ui';
import { escape as esc } from 'lodash'; import { escape as esc } from 'lodash';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
import MarkdownField from '~/vue_shared/components/markdown/field.vue'; import MarkdownField from '~/vue_shared/components/markdown/field.vue';
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
components: { components: {
GlFormInput, GlFormInput,
GlFormGroup, GlFormGroup,
GlNewButton, GlButton,
MarkdownField, MarkdownField,
AssetLinksForm, AssetLinksForm,
}, },
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
<asset-links-form v-if="showAssetLinksForm" /> <asset-links-form v-if="showAssetLinksForm" />
<div class="d-flex pt-3"> <div class="d-flex pt-3">
<gl-new-button <gl-button
class="mr-auto js-no-auto-disable" class="mr-auto js-no-auto-disable"
category="primary" category="primary"
variant="success" variant="success"
...@@ -176,10 +176,10 @@ export default { ...@@ -176,10 +176,10 @@ export default {
:disabled="isSaveChangesDisabled" :disabled="isSaveChangesDisabled"
> >
{{ __('Save changes') }} {{ __('Save changes') }}
</gl-new-button> </gl-button>
<gl-new-button :href="cancelPath" class="js-cancel-button"> <gl-button :href="cancelPath" class="js-cancel-button">
{{ __('Cancel') }} {{ __('Cancel') }}
</gl-new-button> </gl-button>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -4,7 +4,7 @@ import { ...@@ -4,7 +4,7 @@ import {
GlSprintf, GlSprintf,
GlLink, GlLink,
GlFormGroup, GlFormGroup,
GlNewButton, GlButton,
GlIcon, GlIcon,
GlTooltipDirective, GlTooltipDirective,
GlFormInput, GlFormInput,
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
export default { export default {
name: 'AssetLinksForm', name: 'AssetLinksForm',
components: { GlSprintf, GlLink, GlFormGroup, GlNewButton, GlIcon, GlFormInput }, components: { GlSprintf, GlLink, GlFormGroup, GlButton, GlIcon, GlFormInput },
directives: { GlTooltip: GlTooltipDirective }, directives: { GlTooltip: GlTooltipDirective },
computed: { computed: {
...mapState('detail', ['release', 'releaseAssetsDocsPath']), ...mapState('detail', ['release', 'releaseAssetsDocsPath']),
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
</gl-form-group> </gl-form-group>
<div class="mb-5 mb-sm-3 mt-sm-4 col col-sm-auto"> <div class="mb-5 mb-sm-3 mt-sm-4 col col-sm-auto">
<gl-new-button <gl-button
v-gl-tooltip v-gl-tooltip
class="remove-button w-100" class="remove-button w-100"
:aria-label="__('Remove asset link')" :aria-label="__('Remove asset link')"
...@@ -179,16 +179,16 @@ export default { ...@@ -179,16 +179,16 @@ export default {
> >
<gl-icon class="mr-1 mr-sm-0 mb-1" :size="16" name="remove" /> <gl-icon class="mr-1 mr-sm-0 mb-1" :size="16" name="remove" />
<span class="d-inline d-sm-none">{{ __('Remove asset link') }}</span> <span class="d-inline d-sm-none">{{ __('Remove asset link') }}</span>
</gl-new-button> </gl-button>
</div> </div>
</div> </div>
<gl-new-button <gl-button
ref="addAnotherLinkButton" ref="addAnotherLinkButton"
variant="link" variant="link"
class="align-self-end mb-5 mb-sm-0" class="align-self-end mb-5 mb-sm-0"
@click="onAddAnotherClicked" @click="onAddAnotherClicked"
> >
{{ __('Add another link') }} {{ __('Add another link') }}
</gl-new-button> </gl-button>
</div> </div>
</template> </template>
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
GlLoadingIcon, GlLoadingIcon,
GlDropdown, GlDropdown,
GlDropdownItem, GlDropdownItem,
GlNewButton, GlButton,
} from '@gitlab/ui'; } from '@gitlab/ui';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
GlDropdown, GlDropdown,
GlDropdownItem, GlDropdownItem,
TimeAgoTooltip, TimeAgoTooltip,
GlNewButton, GlButton,
}, },
apollo: { apollo: {
canCreateSnippet: { canCreateSnippet: {
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
<div class="detail-page-header-actions"> <div class="detail-page-header-actions">
<div class="d-none d-sm-flex"> <div class="d-none d-sm-flex">
<template v-for="(action, index) in personalSnippetActions"> <template v-for="(action, index) in personalSnippetActions">
<gl-new-button <gl-button
v-if="action.condition" v-if="action.condition"
:key="index" :key="index"
:disabled="action.disabled" :disabled="action.disabled"
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
@click="action.click ? action.click() : undefined" @click="action.click ? action.click() : undefined"
> >
{{ action.text }} {{ action.text }}
</gl-new-button> </gl-button>
</template> </template>
</div> </div>
<div class="d-block d-sm-none dropdown"> <div class="d-block d-sm-none dropdown">
...@@ -227,8 +227,8 @@ export default { ...@@ -227,8 +227,8 @@ export default {
</gl-sprintf> </gl-sprintf>
<template #modal-footer> <template #modal-footer>
<gl-new-button @click="closeDeleteModal">{{ __('Cancel') }}</gl-new-button> <gl-button @click="closeDeleteModal">{{ __('Cancel') }}</gl-button>
<gl-new-button <gl-button
variant="danger" variant="danger"
category="primary" category="primary"
:disabled="isDeleting" :disabled="isDeleting"
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
> >
<gl-loading-icon v-if="isDeleting" inline /> <gl-loading-icon v-if="isDeleting" inline />
{{ __('Delete snippet') }} {{ __('Delete snippet') }}
</gl-new-button> </gl-button>
</template> </template>
</gl-modal> </gl-modal>
</div> </div>
......
<script> <script>
import { GlNewButton, GlLoadingIcon } from '@gitlab/ui'; import { GlButton, GlLoadingIcon } from '@gitlab/ui';
export default { export default {
components: { components: {
GlNewButton, GlButton,
GlLoadingIcon, GlLoadingIcon,
}, },
props: { props: {
...@@ -29,16 +29,12 @@ export default { ...@@ -29,16 +29,12 @@ export default {
<div class="d-flex bg-light border-top justify-content-between align-items-center py-3 px-4"> <div class="d-flex bg-light border-top justify-content-between align-items-center py-3 px-4">
<gl-loading-icon :class="{ invisible: !savingChanges }" size="md" /> <gl-loading-icon :class="{ invisible: !savingChanges }" size="md" />
<div> <div>
<gl-new-button v-if="returnUrl" ref="returnUrlLink" :href="returnUrl">{{ <gl-button v-if="returnUrl" ref="returnUrlLink" :href="returnUrl">{{
s__('StaticSiteEditor|Return to site') s__('StaticSiteEditor|Return to site')
}}</gl-new-button> }}</gl-button>
<gl-new-button <gl-button variant="success" :disabled="!saveable || savingChanges" @click="$emit('submit')">
variant="success"
:disabled="!saveable || savingChanges"
@click="$emit('submit')"
>
{{ __('Submit Changes') }} {{ __('Submit Changes') }}
</gl-new-button> </gl-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { isString } from 'lodash'; import { isString } from 'lodash';
import { GlLink, GlNewButton } from '@gitlab/ui'; import { GlLink, GlButton } from '@gitlab/ui';
const validateUrlAndLabel = value => isString(value.label) && isString(value.url); const validateUrlAndLabel = value => isString(value.label) && isString(value.url);
export default { export default {
components: { components: {
GlLink, GlLink,
GlNewButton, GlButton,
}, },
props: { props: {
branch: { branch: {
...@@ -46,16 +46,12 @@ export default { ...@@ -46,16 +46,12 @@ export default {
}} }}
</p> </p>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gl-new-button ref="returnToSiteButton" :href="returnUrl">{{ <gl-button ref="returnToSiteButton" :href="returnUrl">{{
s__('StaticSiteEditor|Return to site') s__('StaticSiteEditor|Return to site')
}}</gl-new-button> }}</gl-button>
<gl-new-button <gl-button ref="mergeRequestButton" class="ml-2" :href="mergeRequest.url" variant="success">
ref="mergeRequestButton" {{ s__('StaticSiteEditor|View merge request') }}
class="ml-2" </gl-button>
:href="mergeRequest.url"
variant="success"
>{{ s__('StaticSiteEditor|View merge request') }}</gl-new-button
>
</div> </div>
</div> </div>
......
...@@ -3,7 +3,7 @@ import { ...@@ -3,7 +3,7 @@ import {
GlNewDropdown, GlNewDropdown,
GlNewDropdownHeader, GlNewDropdownHeader,
GlFormInputGroup, GlFormInputGroup,
GlNewButton, GlButton,
GlIcon, GlIcon,
GlTooltipDirective, GlTooltipDirective,
} from '@gitlab/ui'; } from '@gitlab/ui';
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
GlNewDropdown, GlNewDropdown,
GlNewDropdownHeader, GlNewDropdownHeader,
GlFormInputGroup, GlFormInputGroup,
GlNewButton, GlButton,
GlIcon, GlIcon,
}, },
directives: { directives: {
...@@ -55,13 +55,13 @@ export default { ...@@ -55,13 +55,13 @@ export default {
<div class="mx-3"> <div class="mx-3">
<gl-form-input-group :value="sshLink" readonly select-on-click> <gl-form-input-group :value="sshLink" readonly select-on-click>
<template #append> <template #append>
<gl-new-button <gl-button
v-gl-tooltip.hover v-gl-tooltip.hover
:title="$options.copyURLTooltip" :title="$options.copyURLTooltip"
:data-clipboard-text="sshLink" :data-clipboard-text="sshLink"
> >
<gl-icon name="copy-to-clipboard" :title="$options.copyURLTooltip" /> <gl-icon name="copy-to-clipboard" :title="$options.copyURLTooltip" />
</gl-new-button> </gl-button>
</template> </template>
</gl-form-input-group> </gl-form-input-group>
</div> </div>
...@@ -73,13 +73,13 @@ export default { ...@@ -73,13 +73,13 @@ export default {
<div class="mx-3"> <div class="mx-3">
<gl-form-input-group :value="httpLink" readonly select-on-click> <gl-form-input-group :value="httpLink" readonly select-on-click>
<template #append> <template #append>
<gl-new-button <gl-button
v-gl-tooltip.hover v-gl-tooltip.hover
:title="$options.copyURLTooltip" :title="$options.copyURLTooltip"
:data-clipboard-text="httpLink" :data-clipboard-text="httpLink"
> >
<gl-icon name="copy-to-clipboard" :title="$options.copyURLTooltip" /> <gl-icon name="copy-to-clipboard" :title="$options.copyURLTooltip" />
</gl-new-button> </gl-button>
</template> </template>
</gl-form-input-group> </gl-form-input-group>
</div> </div>
......
<script> <script>
import { cloneDeep } from 'lodash'; import { cloneDeep } from 'lodash';
import { GlBadge, GlIcon, GlLink, GlNewButton, GlSkeletonLoading, GlTable } from '@gitlab/ui'; import { GlBadge, GlIcon, GlLink, GlButton, GlSkeletonLoading, GlTable } from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import DependenciesTableRow from './dependencies_table_row.vue'; import DependenciesTableRow from './dependencies_table_row.vue';
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
GlBadge, GlBadge,
GlIcon, GlIcon,
GlLink, GlLink,
GlNewButton, GlButton,
GlSkeletonLoading, GlSkeletonLoading,
GlTable, GlTable,
}, },
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
GlTable; they mutate/read the item's _showDetails property, which GlTable GlTable; they mutate/read the item's _showDetails property, which GlTable
uses to show/hide the row-details slot --> uses to show/hide the row-details slot -->
<template #cell(component)="{ item, toggleDetails, detailsShowing }"> <template #cell(component)="{ item, toggleDetails, detailsShowing }">
<gl-new-button <gl-button
v-if="anyDependencyHasVulnerabilities" v-if="anyDependencyHasVulnerabilities"
class="d-none d-md-inline" class="d-none d-md-inline"
:class="{ invisible: !item.vulnerabilities.length }" :class="{ invisible: !item.vulnerabilities.length }"
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
:name="detailsShowing ? 'chevron-up' : 'chevron-down'" :name="detailsShowing ? 'chevron-up' : 'chevron-down'"
class="text-secondary-900" class="text-secondary-900"
/> />
</gl-new-button> </gl-button>
<span class="bold">{{ item.name }}</span <span class="bold">{{ item.name }}</span
>&nbsp;{{ item.version }} >&nbsp;{{ item.version }}
</template> </template>
......
<script> <script>
import { GlNewButton, GlIcon, GlTooltip } from '@gitlab/ui'; import { GlButton, GlIcon, GlTooltip } from '@gitlab/ui';
import { __, n__ } from '~/locale'; import { __, n__ } from '~/locale';
import eventHub from '../event_hub'; import eventHub from '../event_hub';
export default { export default {
components: { components: {
GlNewButton, GlButton,
GlIcon, GlIcon,
GlTooltip, GlTooltip,
}, },
...@@ -55,14 +55,14 @@ export default { ...@@ -55,14 +55,14 @@ export default {
<template> <template>
<div class="epic-details-cell d-flex align-items-start p-2" data-qa-selector="epic_details_cell"> <div class="epic-details-cell d-flex align-items-start p-2" data-qa-selector="epic_details_cell">
<gl-new-button <gl-button
:class="{ invisible: isExpandIconHidden }" :class="{ invisible: isExpandIconHidden }"
variant="link" variant="link"
:aria-label="expandIconLabel" :aria-label="expandIconLabel"
@click="toggleIsEpicExpanded" @click="toggleIsEpicExpanded"
> >
<gl-icon :name="expandIconName" class="text-secondary" aria-hidden="true" /> <gl-icon :name="expandIconName" class="text-secondary" aria-hidden="true" />
</gl-new-button> </gl-button>
<div class="overflow-hidden flex-grow-1" :class="[epic.isChildEpic ? 'ml-4 mr-2' : 'mx-2']"> <div class="overflow-hidden flex-grow-1" :class="[epic.isChildEpic ? 'ml-4 mr-2' : 'mx-2']">
<a :href="epic.webUrl" :title="epic.title" class="epic-title d-block text-body bold"> <a :href="epic.webUrl" :title="epic.title" class="epic-title d-block text-body bold">
{{ epic.title }} {{ epic.title }}
......
<script> <script>
import { import { GlPopover, GlIcon, GlLink, GlButton, GlTooltipDirective, GlLoadingIcon } from '@gitlab/ui';
GlPopover,
GlIcon,
GlLink,
GlNewButton,
GlTooltipDirective,
GlLoadingIcon,
} from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import createFlash from '~/flash'; import createFlash from '~/flash';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
...@@ -18,7 +11,7 @@ export const STORAGE_KEY = 'vulnerability_csv_export_popover_dismissed'; ...@@ -18,7 +11,7 @@ export const STORAGE_KEY = 'vulnerability_csv_export_popover_dismissed';
export default { export default {
components: { components: {
GlIcon, GlIcon,
GlNewButton, GlButton,
GlPopover, GlPopover,
GlLink, GlLink,
GlLoadingIcon, GlLoadingIcon,
...@@ -70,7 +63,7 @@ export default { ...@@ -70,7 +63,7 @@ export default {
}; };
</script> </script>
<template> <template>
<gl-new-button <gl-button
ref="csvExportButton" ref="csvExportButton"
v-gl-tooltip.hover v-gl-tooltip.hover
class="align-self-center" class="align-self-center"
...@@ -104,9 +97,9 @@ export default { ...@@ -104,9 +97,9 @@ export default {
{{ __('More information and share feedback') }} {{ __('More information and share feedback') }}
<gl-icon name="external-link" :size="12" class="ml-1" /> <gl-icon name="external-link" :size="12" class="ml-1" />
</gl-link> </gl-link>
<gl-new-button ref="popoverButton" class="w-100" @click="closePopover"> <gl-button ref="popoverButton" class="w-100" @click="closePopover">
{{ __('Got it!') }} {{ __('Got it!') }}
</gl-new-button> </gl-button>
</gl-popover> </gl-popover>
</gl-new-button> </gl-button>
</template> </template>
<script> <script>
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import { GlAlert, GlNewButton, GlEmptyState, GlIntersectionObserver } from '@gitlab/ui'; import { GlAlert, GlButton, GlEmptyState, GlIntersectionObserver } from '@gitlab/ui';
import VulnerabilityList from 'ee/vulnerabilities/components/vulnerability_list.vue'; import VulnerabilityList from 'ee/vulnerabilities/components/vulnerability_list.vue';
import vulnerabilitiesQuery from '../graphql/group_vulnerabilities.graphql'; import vulnerabilitiesQuery from '../graphql/group_vulnerabilities.graphql';
import { VULNERABILITIES_PER_PAGE } from 'ee/vulnerabilities/constants'; import { VULNERABILITIES_PER_PAGE } from 'ee/vulnerabilities/constants';
...@@ -8,7 +8,7 @@ import { VULNERABILITIES_PER_PAGE } from 'ee/vulnerabilities/constants'; ...@@ -8,7 +8,7 @@ import { VULNERABILITIES_PER_PAGE } from 'ee/vulnerabilities/constants';
export default { export default {
components: { components: {
GlAlert, GlAlert,
GlNewButton, GlButton,
GlEmptyState, GlEmptyState,
GlIntersectionObserver, GlIntersectionObserver,
VulnerabilityList, VulnerabilityList,
...@@ -126,9 +126,9 @@ export default { ...@@ -126,9 +126,9 @@ export default {
class="text-center" class="text-center"
@appear="fetchNextPage" @appear="fetchNextPage"
> >
<gl-new-button :loading="isLoadingQuery" :disabled="isLoadingQuery" @click="fetchNextPage">{{ <gl-button :loading="isLoadingQuery" :disabled="isLoadingQuery" @click="fetchNextPage">{{
__('Load more vulnerabilities') __('Load more vulnerabilities')
}}</gl-new-button> }}</gl-button>
</gl-intersection-observer> </gl-intersection-observer>
</div> </div>
</template> </template>
<script> <script>
import { GlAlert, GlNewButton, GlEmptyState, GlIntersectionObserver } from '@gitlab/ui'; import { GlAlert, GlButton, GlEmptyState, GlIntersectionObserver } from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import VulnerabilityList from 'ee/vulnerabilities/components/vulnerability_list.vue'; import VulnerabilityList from 'ee/vulnerabilities/components/vulnerability_list.vue';
import vulnerabilitiesQuery from '../graphql/instance_vulnerabilities.graphql'; import vulnerabilitiesQuery from '../graphql/instance_vulnerabilities.graphql';
...@@ -8,7 +8,7 @@ import { VULNERABILITIES_PER_PAGE } from 'ee/vulnerabilities/constants'; ...@@ -8,7 +8,7 @@ import { VULNERABILITIES_PER_PAGE } from 'ee/vulnerabilities/constants';
export default { export default {
components: { components: {
GlAlert, GlAlert,
GlNewButton, GlButton,
GlEmptyState, GlEmptyState,
GlIntersectionObserver, GlIntersectionObserver,
VulnerabilityList, VulnerabilityList,
...@@ -119,9 +119,9 @@ export default { ...@@ -119,9 +119,9 @@ export default {
class="text-center" class="text-center"
@appear="fetchNextPage" @appear="fetchNextPage"
> >
<gl-new-button :loading="isLoadingQuery" :disabled="isLoadingQuery" @click="fetchNextPage">{{ <gl-button :loading="isLoadingQuery" :disabled="isLoadingQuery" @click="fetchNextPage">{{
__('Load more vulnerabilities') __('Load more vulnerabilities')
}}</gl-new-button> }}</gl-button>
</gl-intersection-observer> </gl-intersection-observer>
</div> </div>
</template> </template>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import Tracking from '~/tracking'; import Tracking from '~/tracking';
import { import {
GlIcon, GlIcon,
GlNewButton, GlButton,
GlLoadingIcon, GlLoadingIcon,
GlTooltip, GlTooltip,
GlDropdownItem, GlDropdownItem,
...@@ -15,7 +15,7 @@ import { healthStatusTextMap } from '../../constants'; ...@@ -15,7 +15,7 @@ import { healthStatusTextMap } from '../../constants';
export default { export default {
components: { components: {
GlIcon, GlIcon,
GlNewButton, GlButton,
GlLoadingIcon, GlLoadingIcon,
GlTooltip, GlTooltip,
GlDropdown, GlDropdown,
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
> >
<div class="dropdown-title"> <div class="dropdown-title">
<span class="health-title">{{ s__('Sidebar|Assign health status') }}</span> <span class="health-title">{{ s__('Sidebar|Assign health status') }}</span>
<gl-new-button <gl-button
:aria-label="__('Close')" :aria-label="__('Close')"
variant="link" variant="link"
class="dropdown-title-button dropdown-menu-close" class="dropdown-title-button dropdown-menu-close"
...@@ -159,13 +159,13 @@ export default { ...@@ -159,13 +159,13 @@ export default {
<div class="dropdown-content dropdown-body"> <div class="dropdown-content dropdown-body">
<gl-dropdown-item @click="handleDropdownClick(null)"> <gl-dropdown-item @click="handleDropdownClick(null)">
<gl-new-button <gl-button
variant="link" variant="link"
class="dropdown-item health-dropdown-item" class="dropdown-item health-dropdown-item"
:class="{ 'is-active': isSelected(null) }" :class="{ 'is-active': isSelected(null) }"
> >
{{ s__('Sidebar|No status') }} {{ s__('Sidebar|No status') }}
</gl-new-button> </gl-button>
</gl-dropdown-item> </gl-dropdown-item>
<gl-dropdown-divider class="divider health-divider" /> <gl-dropdown-divider class="divider health-divider" />
...@@ -175,13 +175,13 @@ export default { ...@@ -175,13 +175,13 @@ export default {
:key="option.key" :key="option.key"
@click="handleDropdownClick(option.key)" @click="handleDropdownClick(option.key)"
> >
<gl-new-button <gl-button
variant="link" variant="link"
class="dropdown-item health-dropdown-item" class="dropdown-item health-dropdown-item"
:class="{ 'is-active': isSelected(option.key) }" :class="{ 'is-active': isSelected(option.key) }"
> >
{{ option.value }} {{ option.value }}
</gl-new-button> </gl-button>
</gl-dropdown-item> </gl-dropdown-item>
</div> </div>
</gl-dropdown> </gl-dropdown>
......
<script> <script>
import { GlNewButton, GlTooltipDirective, GlCarousel, GlCarouselSlide } from '@gitlab/ui'; import { GlButton, GlTooltipDirective, GlCarousel, GlCarouselSlide } from '@gitlab/ui';
import { sprintf, s__ } from '~/locale'; import { sprintf, s__ } from '~/locale';
import Tracking from '~/tracking'; import Tracking from '~/tracking';
import securityDependencyImageUrl from 'ee_images/promotions/security-dependencies.png'; import securityDependencyImageUrl from 'ee_images/promotions/security-dependencies.png';
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
components: { components: {
GlNewButton, GlButton,
GlCarousel, GlCarousel,
GlCarouselSlide, GlCarouselSlide,
}, },
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
<p class="gl-text-gray-900 text-left mb-5" v-html="$options.i18n.discoverPlanCaption"></p> <p class="gl-text-gray-900 text-left mb-5" v-html="$options.i18n.discoverPlanCaption"></p>
</div> </div>
<div class="discover-buttons d-flex flex-nowrap flex-row justify-content-between mx-auto my-0"> <div class="discover-buttons d-flex flex-nowrap flex-row justify-content-between mx-auto my-0">
<gl-new-button <gl-button
class="discover-button-upgrade" class="discover-button-upgrade"
v-bind="discoverButtonProps" v-bind="discoverButtonProps"
category="secondary" category="secondary"
...@@ -177,8 +177,8 @@ export default { ...@@ -177,8 +177,8 @@ export default {
:href="linkSecondary" :href="linkSecondary"
> >
{{ $options.i18n.discoverUpgradeLabel }} {{ $options.i18n.discoverUpgradeLabel }}
</gl-new-button> </gl-button>
<gl-new-button <gl-button
class="discover-button-trial" class="discover-button-trial"
v-bind="discoverButtonProps" v-bind="discoverButtonProps"
category="primary" category="primary"
...@@ -187,10 +187,10 @@ export default { ...@@ -187,10 +187,10 @@ export default {
:href="linkMain" :href="linkMain"
> >
{{ $options.i18n.discoverTrialLabel }} {{ $options.i18n.discoverTrialLabel }}
</gl-new-button> </gl-button>
</div> </div>
<div id="tooltipcontainer" class="discover-feedback w-30p position-fixed"> <div id="tooltipcontainer" class="discover-feedback w-30p position-fixed">
<gl-new-button <gl-button
v-gl-tooltip:tooltipcontainer.left v-gl-tooltip:tooltipcontainer.left
:title="$options.i18n.discoverFeedbackLabel" :title="$options.i18n.discoverFeedbackLabel"
icon="slight-smile" icon="slight-smile"
......
<script> <script>
import { GlDeprecatedButton, GlNewButton, GlLoadingIcon } from '@gitlab/ui'; import { GlDeprecatedButton, GlButton, GlLoadingIcon } from '@gitlab/ui';
import createFlash from '~/flash'; import createFlash from '~/flash';
import EventItem from 'ee/vue_shared/security_reports/components/event_item.vue'; import EventItem from 'ee/vue_shared/security_reports/components/event_item.vue';
import { __, s__ } from '~/locale'; import { __, s__ } from '~/locale';
...@@ -10,7 +10,7 @@ import HistoryCommentEditor from './history_comment_editor.vue'; ...@@ -10,7 +10,7 @@ import HistoryCommentEditor from './history_comment_editor.vue';
export default { export default {
components: { components: {
GlDeprecatedButton, GlDeprecatedButton,
GlNewButton, GlButton,
EventItem, EventItem,
HistoryCommentEditor, HistoryCommentEditor,
GlLoadingIcon, GlLoadingIcon,
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
<div v-html="comment.note"></div> <div v-html="comment.note"></div>
<template #right-content> <template #right-content>
<gl-new-button <gl-button
ref="confirmDeleteButton" ref="confirmDeleteButton"
variant="danger" variant="danger"
:disabled="isDeletingComment" :disabled="isDeletingComment"
...@@ -164,15 +164,15 @@ export default { ...@@ -164,15 +164,15 @@ export default {
> >
<gl-loading-icon v-if="isDeletingComment" class="mr-1" /> <gl-loading-icon v-if="isDeletingComment" class="mr-1" />
{{ __('Delete') }} {{ __('Delete') }}
</gl-new-button> </gl-button>
<gl-new-button <gl-button
ref="cancelDeleteButton" ref="cancelDeleteButton"
class="ml-2" class="ml-2"
:disabled="isDeletingComment" :disabled="isDeletingComment"
@click="cancelDeleteConfirmation" @click="cancelDeleteConfirmation"
> >
{{ __('Cancel') }} {{ __('Cancel') }}
</gl-new-button> </gl-button>
</template> </template>
</event-item> </event-item>
......
<script> <script>
import { GlFormTextarea, GlNewButton, GlLoadingIcon } from '@gitlab/ui'; import { GlFormTextarea, GlButton, GlLoadingIcon } from '@gitlab/ui';
export default { export default {
components: { GlFormTextarea, GlNewButton, GlLoadingIcon }, components: { GlFormTextarea, GlButton, GlLoadingIcon },
props: { props: {
initialComment: { initialComment: {
type: String, type: String,
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
autofocus autofocus
/> />
<div class="mt-3"> <div class="mt-3">
<gl-new-button <gl-button
ref="saveButton" ref="saveButton"
variant="success" variant="success"
:disabled="isSaveButtonDisabled" :disabled="isSaveButtonDisabled"
...@@ -47,15 +47,10 @@ export default { ...@@ -47,15 +47,10 @@ export default {
> >
<gl-loading-icon v-if="isSaving" class="mr-1" /> <gl-loading-icon v-if="isSaving" class="mr-1" />
{{ __('Save comment') }} {{ __('Save comment') }}
</gl-new-button> </gl-button>
<gl-new-button <gl-button ref="cancelButton" class="ml-1" :disabled="isSaving" @click="$emit('onCancel')">
ref="cancelButton"
class="ml-1"
:disabled="isSaving"
@click="$emit('onCancel')"
>
{{ __('Cancel') }} {{ __('Cancel') }}
</gl-new-button> </gl-button>
</div> </div>
</div> </div>
</template> </template>
import { nextTick } from 'vue'; import { nextTick } from 'vue';
import { mount, shallowMount } from '@vue/test-utils'; import { mount, shallowMount } from '@vue/test-utils';
import { GlBadge, GlNewButton, GlLink, GlSkeletonLoading } from '@gitlab/ui'; import { GlBadge, GlButton, GlLink, GlSkeletonLoading } from '@gitlab/ui';
import DependenciesTable from 'ee/dependencies/components/dependencies_table.vue'; import DependenciesTable from 'ee/dependencies/components/dependencies_table.vue';
import DependenciesTableRow from 'ee/dependencies/components/dependencies_table_row.vue'; import DependenciesTableRow from 'ee/dependencies/components/dependencies_table_row.vue';
import DependencyLicenseLinks from 'ee/dependencies/components/dependency_license_links.vue'; import DependencyLicenseLinks from 'ee/dependencies/components/dependency_license_links.vue';
...@@ -82,7 +82,7 @@ describe('DependenciesTable component', () => { ...@@ -82,7 +82,7 @@ describe('DependenciesTable component', () => {
}; };
const findTableRows = () => wrapper.findAll('tbody > tr'); const findTableRows = () => wrapper.findAll('tbody > tr');
const findRowToggleButtons = () => wrapper.findAll(GlNewButton); const findRowToggleButtons = () => wrapper.findAll(GlButton);
const findDependencyVulnerabilities = () => wrapper.find(DependencyVulnerabilities); const findDependencyVulnerabilities = () => wrapper.find(DependencyVulnerabilities);
const normalizeWhitespace = string => string.replace(/\s+/g, ' '); const normalizeWhitespace = string => string.replace(/\s+/g, ' ');
......
import { GlNewButton, GlIcon, GlTooltip } from '@gitlab/ui'; import { GlButton, GlIcon, GlTooltip } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import EpicItemDetails from 'ee/roadmap/components/epic_item_details.vue'; import EpicItemDetails from 'ee/roadmap/components/epic_item_details.vue';
import eventHub from 'ee/roadmap/event_hub'; import eventHub from 'ee/roadmap/event_hub';
...@@ -27,7 +27,7 @@ const getTitle = wrapper => wrapper.find('.epic-title'); ...@@ -27,7 +27,7 @@ const getTitle = wrapper => wrapper.find('.epic-title');
const getGroupName = wrapper => wrapper.find('.epic-group'); const getGroupName = wrapper => wrapper.find('.epic-group');
const getExpandIconButton = wrapper => wrapper.find(GlNewButton); const getExpandIconButton = wrapper => wrapper.find(GlButton);
const getChildEpicsCount = wrapper => wrapper.find({ ref: 'childEpicsCount' }); const getChildEpicsCount = wrapper => wrapper.find({ ref: 'childEpicsCount' });
......
import { GlAvatar, GlNewButton, GlFormSelect, GlLabel } from '@gitlab/ui'; import { GlAvatar, GlButton, GlFormSelect, GlLabel } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import JiraImportForm from '~/jira_import/components/jira_import_form.vue'; import JiraImportForm from '~/jira_import/components/jira_import_form.vue';
...@@ -44,7 +44,7 @@ describe('JiraImportForm', () => { ...@@ -44,7 +44,7 @@ describe('JiraImportForm', () => {
it('shows a Next button', () => { it('shows a Next button', () => {
const nextButton = wrapper const nextButton = wrapper
.findAll(GlNewButton) .findAll(GlButton)
.at(0) .at(0)
.text(); .text();
...@@ -53,7 +53,7 @@ describe('JiraImportForm', () => { ...@@ -53,7 +53,7 @@ describe('JiraImportForm', () => {
it('shows a Cancel button', () => { it('shows a Cancel button', () => {
const cancelButton = wrapper const cancelButton = wrapper
.findAll(GlNewButton) .findAll(GlButton)
.at(1) .at(1)
.text(); .text();
......
import SnippetHeader from '~/snippets/components/snippet_header.vue'; import SnippetHeader from '~/snippets/components/snippet_header.vue';
import DeleteSnippetMutation from '~/snippets/mutations/deleteSnippet.mutation.graphql'; import DeleteSnippetMutation from '~/snippets/mutations/deleteSnippet.mutation.graphql';
import { ApolloMutation } from 'vue-apollo'; import { ApolloMutation } from 'vue-apollo';
import { GlNewButton, GlModal } from '@gitlab/ui'; import { GlButton, GlModal } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
describe('Snippet header component', () => { describe('Snippet header component', () => {
...@@ -89,7 +89,7 @@ describe('Snippet header component', () => { ...@@ -89,7 +89,7 @@ describe('Snippet header component', () => {
updateSnippet: false, updateSnippet: false,
}, },
}); });
expect(wrapper.findAll(GlNewButton).length).toEqual(0); expect(wrapper.findAll(GlButton).length).toEqual(0);
createComponent({ createComponent({
permissions: { permissions: {
...@@ -97,7 +97,7 @@ describe('Snippet header component', () => { ...@@ -97,7 +97,7 @@ describe('Snippet header component', () => {
updateSnippet: false, updateSnippet: false,
}, },
}); });
expect(wrapper.findAll(GlNewButton).length).toEqual(1); expect(wrapper.findAll(GlButton).length).toEqual(1);
createComponent({ createComponent({
permissions: { permissions: {
...@@ -105,7 +105,7 @@ describe('Snippet header component', () => { ...@@ -105,7 +105,7 @@ describe('Snippet header component', () => {
updateSnippet: true, updateSnippet: true,
}, },
}); });
expect(wrapper.findAll(GlNewButton).length).toEqual(2); expect(wrapper.findAll(GlButton).length).toEqual(2);
createComponent({ createComponent({
permissions: { permissions: {
...@@ -117,7 +117,7 @@ describe('Snippet header component', () => { ...@@ -117,7 +117,7 @@ describe('Snippet header component', () => {
canCreateSnippet: true, canCreateSnippet: true,
}); });
return wrapper.vm.$nextTick().then(() => { return wrapper.vm.$nextTick().then(() => {
expect(wrapper.findAll(GlNewButton).length).toEqual(3); expect(wrapper.findAll(GlButton).length).toEqual(3);
}); });
}); });
......
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import { GlNewButton, GlLoadingIcon } from '@gitlab/ui'; import { GlButton, GlLoadingIcon } from '@gitlab/ui';
import PublishToolbar from '~/static_site_editor/components/publish_toolbar.vue'; import PublishToolbar from '~/static_site_editor/components/publish_toolbar.vue';
...@@ -18,7 +18,7 @@ describe('Static Site Editor Toolbar', () => { ...@@ -18,7 +18,7 @@ describe('Static Site Editor Toolbar', () => {
}; };
const findReturnUrlLink = () => wrapper.find({ ref: 'returnUrlLink' }); const findReturnUrlLink = () => wrapper.find({ ref: 'returnUrlLink' });
const findSaveChangesButton = () => wrapper.find(GlNewButton); const findSaveChangesButton = () => wrapper.find(GlButton);
const findLoadingIndicator = () => wrapper.find(GlLoadingIcon); const findLoadingIndicator = () => wrapper.find(GlLoadingIcon);
beforeEach(() => { beforeEach(() => {
......
...@@ -42,7 +42,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = ` ...@@ -42,7 +42,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = `
<b-input-group-append-stub <b-input-group-append-stub
tag="div" tag="div"
> >
<gl-new-button-stub <gl-button-stub
category="tertiary" category="tertiary"
data-clipboard-text="ssh://foo.bar" data-clipboard-text="ssh://foo.bar"
icon="" icon=""
...@@ -55,7 +55,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = ` ...@@ -55,7 +55,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = `
size="16" size="16"
title="Copy URL" title="Copy URL"
/> />
</gl-new-button-stub> </gl-button-stub>
</b-input-group-append-stub> </b-input-group-append-stub>
</b-input-group-stub> </b-input-group-stub>
</div> </div>
...@@ -92,7 +92,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = ` ...@@ -92,7 +92,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = `
<b-input-group-append-stub <b-input-group-append-stub
tag="div" tag="div"
> >
<gl-new-button-stub <gl-button-stub
category="tertiary" category="tertiary"
data-clipboard-text="http://foo.bar" data-clipboard-text="http://foo.bar"
icon="" icon=""
...@@ -105,7 +105,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = ` ...@@ -105,7 +105,7 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = `
size="16" size="16"
title="Copy URL" title="Copy URL"
/> />
</gl-new-button-stub> </gl-button-stub>
</b-input-group-append-stub> </b-input-group-append-stub>
</b-input-group-stub> </b-input-group-stub>
</div> </div>
......
...@@ -786,10 +786,10 @@ ...@@ -786,10 +786,10 @@
resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.119.0.tgz#ff35c160b1e726f4f1702a4a152712fb669cde4e" resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.119.0.tgz#ff35c160b1e726f4f1702a4a152712fb669cde4e"
integrity sha512-bI+kewDLJy1N0//BpUPMx3h5AqG6lfIiV53lxQP9ttn8j/jhyxigZXq1wZ901PI4/ALv9IY1DOSSuLouK4sJsQ== integrity sha512-bI+kewDLJy1N0//BpUPMx3h5AqG6lfIiV53lxQP9ttn8j/jhyxigZXq1wZ901PI4/ALv9IY1DOSSuLouK4sJsQ==
"@gitlab/ui@11.2.1": "@gitlab/ui@12.0.0":
version "11.2.1" version "12.0.0"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-11.2.1.tgz#c031c92204eb2a6036ae3c7482387f66c75524fd" resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-12.0.0.tgz#595ebaaf3d4213dcd5a9707384e1c98ea7ba41b6"
integrity sha512-AhDPYmrBtaW6Qu+inSjoMCWx+Ou3CVIhhGAEjyVsAG7rSOilevVMZui2IlSb6fPtLcXS8F78DTWjp3R1YgxxbQ== integrity sha512-5c2zRivIkPgTZi3+kfF8vbP2lTrwTSN1pBP1NaPe74sYw8yEe5ULCjAWKikh3ROUmsRs7+u5A/Wh3j1qaZ2/VA==
dependencies: dependencies:
"@babel/standalone" "^7.0.0" "@babel/standalone" "^7.0.0"
"@gitlab/vue-toasted" "^1.3.0" "@gitlab/vue-toasted" "^1.3.0"
......
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