From 442dce052a11600689597da932970e05439cc4a9 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Wed, 12 Jun 2019 10:18:37 +0100 Subject: Moves table pagination component Move the table paginaiton component under the new pagination folder in vue shared components and updates all the paths --- .../commit/pipelines/pipelines_table.vue | 2 +- .../environments/components/container.vue | 2 +- .../environments/mixins/environments_mixin.js | 2 +- .../javascripts/pipelines/components/pipelines.vue | 2 +- .../registry/components/table_registry.vue | 2 +- .../components/pagination/table_pagination.vue | 159 +++++++++++++++++++++ .../vue_shared/components/table_pagination.vue | 159 --------------------- .../unreleased/62788-clean-up-pagination.yml | 5 + .../vue_shared/components/table_pagination_spec.js | 2 +- 9 files changed, 170 insertions(+), 165 deletions(-) create mode 100644 app/assets/javascripts/vue_shared/components/pagination/table_pagination.vue delete mode 100644 app/assets/javascripts/vue_shared/components/table_pagination.vue create mode 100644 changelogs/unreleased/62788-clean-up-pagination.yml diff --git a/app/assets/javascripts/commit/pipelines/pipelines_table.vue b/app/assets/javascripts/commit/pipelines/pipelines_table.vue index 3e01841d563..4890f99e9d1 100644 --- a/app/assets/javascripts/commit/pipelines/pipelines_table.vue +++ b/app/assets/javascripts/commit/pipelines/pipelines_table.vue @@ -2,7 +2,7 @@ import PipelinesService from '../../pipelines/services/pipelines_service'; import PipelineStore from '../../pipelines/stores/pipelines_store'; import pipelinesMixin from '../../pipelines/mixins/pipelines'; -import TablePagination from '../../vue_shared/components/table_pagination.vue'; +import TablePagination from '../../vue_shared/components/pagination/table_pagination.vue'; import { getParameterByName } from '../../lib/utils/common_utils'; import CIPaginationMixin from '../../vue_shared/mixins/ci_pagination_api_mixin'; diff --git a/app/assets/javascripts/environments/components/container.vue b/app/assets/javascripts/environments/components/container.vue index be80661223c..f8a637138ad 100644 --- a/app/assets/javascripts/environments/components/container.vue +++ b/app/assets/javascripts/environments/components/container.vue @@ -1,6 +1,6 @@ + diff --git a/app/assets/javascripts/vue_shared/components/table_pagination.vue b/app/assets/javascripts/vue_shared/components/table_pagination.vue deleted file mode 100644 index 1e2d4ffa7e3..00000000000 --- a/app/assets/javascripts/vue_shared/components/table_pagination.vue +++ /dev/null @@ -1,159 +0,0 @@ - - diff --git a/changelogs/unreleased/62788-clean-up-pagination.yml b/changelogs/unreleased/62788-clean-up-pagination.yml new file mode 100644 index 00000000000..05e3a4527b8 --- /dev/null +++ b/changelogs/unreleased/62788-clean-up-pagination.yml @@ -0,0 +1,5 @@ +--- +title: Moves the table pagination shared component +merge_request: +author: +type: other diff --git a/spec/javascripts/vue_shared/components/table_pagination_spec.js b/spec/javascripts/vue_shared/components/table_pagination_spec.js index 42cd41381dc..42abb4d83f0 100644 --- a/spec/javascripts/vue_shared/components/table_pagination_spec.js +++ b/spec/javascripts/vue_shared/components/table_pagination_spec.js @@ -1,5 +1,5 @@ import Vue from 'vue'; -import paginationComp from '~/vue_shared/components/table_pagination.vue'; +import paginationComp from '~/vue_shared/components/pagination/table_pagination.vue'; describe('Pagination component', () => { let component; -- cgit v1.2.1