diff options
Diffstat (limited to 'app/assets/javascripts/pipelines/components/pipelines_list/pipelines.vue')
-rw-r--r-- | app/assets/javascripts/pipelines/components/pipelines_list/pipelines.vue | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/assets/javascripts/pipelines/components/pipelines_list/pipelines.vue b/app/assets/javascripts/pipelines/components/pipelines_list/pipelines.vue index f9022be888a..30528ce8d17 100644 --- a/app/assets/javascripts/pipelines/components/pipelines_list/pipelines.vue +++ b/app/assets/javascripts/pipelines/components/pipelines_list/pipelines.vue @@ -1,7 +1,7 @@ <script> import { GlDropdown, GlDropdownItem, GlEmptyState, GlIcon, GlLoadingIcon } from '@gitlab/ui'; import { isEqual } from 'lodash'; -import createFlash from '~/flash'; +import { createAlert, VARIANT_INFO, VARIANT_WARNING } from '~/flash'; import { getParameterByName } from '~/lib/utils/url_utility'; import { __, s__ } from '~/locale'; import Tracking from '~/tracking'; @@ -249,7 +249,7 @@ export default { this.updateContent(params); - this.track('click_filter_tabs', { label: TRACKING_CATEGORIES.tabs }); + this.track('click_filter_tabs', { label: TRACKING_CATEGORIES.tabs, property: scope }); }, successCallback(resp) { // Because we are polling & the user is interacting verify if the response received @@ -267,14 +267,14 @@ export default { .postAction(endpoint) .then(() => { this.isResetCacheButtonLoading = false; - createFlash({ + createAlert({ message: s__('Pipelines|Project cache successfully reset.'), - type: 'notice', + variant: VARIANT_INFO, }); }) .catch(() => { this.isResetCacheButtonLoading = false; - createFlash({ + createAlert({ message: s__('Pipelines|Something went wrong while cleaning runners cache.'), }); }); @@ -301,9 +301,9 @@ export default { } if (!filter.type) { - createFlash({ + createAlert({ message: RAW_TEXT_WARNING, - type: 'warning', + variant: VARIANT_WARNING, }); } }); |