Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
afd7c0a8
Commit
afd7c0a8
authored
Feb 27, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
e5b8809e
d2336e02
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
13 deletions
+19
-13
app/assets/javascripts/vue_shared/components/table_pagination.vue
...ts/javascripts/vue_shared/components/table_pagination.vue
+2
-2
app/assets/stylesheets/framework/variables_overrides.scss
app/assets/stylesheets/framework/variables_overrides.scss
+1
-0
changelogs/unreleased/consistent-pagination.yml
changelogs/unreleased/consistent-pagination.yml
+5
-0
spec/features/projects/pipelines/pipelines_spec.rb
spec/features/projects/pipelines/pipelines_spec.rb
+1
-1
spec/javascripts/commit/pipelines/pipelines_spec.js
spec/javascripts/commit/pipelines/pipelines_spec.js
+1
-1
spec/javascripts/environments/environments_app_spec.js
spec/javascripts/environments/environments_app_spec.js
+1
-1
spec/javascripts/environments/folder/environments_folder_view_spec.js
...ipts/environments/folder/environments_folder_view_spec.js
+1
-1
spec/javascripts/pipelines/pipelines_spec.js
spec/javascripts/pipelines/pipelines_spec.js
+1
-1
spec/javascripts/vue_shared/components/table_pagination_spec.js
...avascripts/vue_shared/components/table_pagination_spec.js
+6
-6
No files found.
app/assets/javascripts/vue_shared/components/table_pagination.vue
View file @
afd7c0a8
...
...
@@ -149,9 +149,9 @@ export default {
}"
class="page-item"
>
<
a
class=
"page-link"
@
click.prevent
=
"changePage(item.title, item.disabled)"
>
<
button
type=
"button"
class=
"page-link"
@
click
=
"changePage(item.title, item.disabled)"
>
{{
item
.
title
}}
</
a
>
</
button
>
</li>
</ul>
</div>
...
...
app/assets/stylesheets/framework/variables_overrides.scss
View file @
afd7c0a8
...
...
@@ -44,3 +44,4 @@ $spacers: (
5
:
(
$spacer
*
4
)
,
6
:
(
$spacer
*
8
)
);
$pagination-color
:
$gl-text-color
;
changelogs/unreleased/consistent-pagination.yml
0 → 100644
View file @
afd7c0a8
---
title
:
Fix inconsistent pagination styles
merge_request
:
author
:
type
:
fixed
spec/features/projects/pipelines/pipelines_spec.rb
View file @
afd7c0a8
...
...
@@ -485,7 +485,7 @@ describe 'Pipelines', :js do
it
'should show updated content'
do
visit
project_pipelines_path
(
project
)
wait_for_requests
page
.
find
(
'.js-next-button
a
'
).
click
page
.
find
(
'.js-next-button
.page-link
'
).
click
expect
(
page
).
to
have_selector
(
'.gl-pagination .page'
,
count:
2
)
end
...
...
spec/javascripts/commit/pipelines/pipelines_spec.js
View file @
afd7c0a8
...
...
@@ -87,7 +87,7 @@ describe('Pipelines table in Commits and Merge requests', function() {
};
vm
.
$nextTick
(()
=>
{
vm
.
$el
.
querySelector
(
'
.js-next-button
a
'
).
click
();
vm
.
$el
.
querySelector
(
'
.js-next-button
.page-link
'
).
click
();
expect
(
vm
.
updateContent
).
toHaveBeenCalledWith
({
page
:
'
2
'
});
done
();
...
...
spec/javascripts/environments/environments_app_spec.js
View file @
afd7c0a8
...
...
@@ -101,7 +101,7 @@ describe('Environment', () => {
it
(
'
should make an API request when page is clicked
'
,
done
=>
{
spyOn
(
component
,
'
updateContent
'
);
setTimeout
(()
=>
{
component
.
$el
.
querySelector
(
'
.gl-pagination li:nth-child(5)
a
'
).
click
();
component
.
$el
.
querySelector
(
'
.gl-pagination li:nth-child(5)
.page-link
'
).
click
();
expect
(
component
.
updateContent
).
toHaveBeenCalledWith
({
scope
:
'
available
'
,
page
:
'
2
'
});
done
();
...
...
spec/javascripts/environments/folder/environments_folder_view_spec.js
View file @
afd7c0a8
...
...
@@ -114,7 +114,7 @@ describe('Environments Folder View', () => {
it
(
'
should make an API request when changing page
'
,
done
=>
{
spyOn
(
component
,
'
updateContent
'
);
setTimeout
(()
=>
{
component
.
$el
.
querySelector
(
'
.gl-pagination .js-last-button
a
'
).
click
();
component
.
$el
.
querySelector
(
'
.gl-pagination .js-last-button
.page-link
'
).
click
();
expect
(
component
.
updateContent
).
toHaveBeenCalledWith
({
scope
:
component
.
scope
,
...
...
spec/javascripts/pipelines/pipelines_spec.js
View file @
afd7c0a8
...
...
@@ -446,7 +446,7 @@ describe('Pipelines', () => {
};
vm
.
$nextTick
(()
=>
{
vm
.
$el
.
querySelector
(
'
.js-next-button
a
'
).
click
();
vm
.
$el
.
querySelector
(
'
.js-next-button
.page-link
'
).
click
();
expect
(
vm
.
updateContent
).
toHaveBeenCalledWith
({
scope
:
'
all
'
,
page
:
'
2
'
});
...
...
spec/javascripts/vue_shared/components/table_pagination_spec.js
View file @
afd7c0a8
...
...
@@ -53,7 +53,7 @@ describe('Pagination component', () => {
component
.
$el
.
querySelector
(
'
.js-previous-button
'
).
classList
.
contains
(
'
disabled
'
),
).
toEqual
(
true
);
component
.
$el
.
querySelector
(
'
.js-previous-button
a
'
).
click
();
component
.
$el
.
querySelector
(
'
.js-previous-button
.page-link
'
).
click
();
expect
(
spy
).
not
.
toHaveBeenCalled
();
});
...
...
@@ -71,7 +71,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
component
.
$el
.
querySelector
(
'
.js-previous-button
a
'
).
click
();
component
.
$el
.
querySelector
(
'
.js-previous-button
.page-link
'
).
click
();
expect
(
spy
).
toHaveBeenCalledWith
(
1
);
});
...
...
@@ -91,7 +91,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
const
button
=
component
.
$el
.
querySelector
(
'
.js-first-button
a
'
);
const
button
=
component
.
$el
.
querySelector
(
'
.js-first-button
.page-link
'
);
expect
(
button
.
textContent
.
trim
()).
toEqual
(
'
« First
'
);
...
...
@@ -115,7 +115,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
const
button
=
component
.
$el
.
querySelector
(
'
.js-last-button
a
'
);
const
button
=
component
.
$el
.
querySelector
(
'
.js-last-button
.page-link
'
);
expect
(
button
.
textContent
.
trim
()).
toEqual
(
'
Last »
'
);
...
...
@@ -141,7 +141,7 @@ describe('Pagination component', () => {
expect
(
component
.
$el
.
querySelector
(
'
.js-next-button
'
).
textContent
.
trim
()).
toEqual
(
'
Next
'
);
component
.
$el
.
querySelector
(
'
.js-next-button
a
'
).
click
();
component
.
$el
.
querySelector
(
'
.js-next-button
.page-link
'
).
click
();
expect
(
spy
).
not
.
toHaveBeenCalled
();
});
...
...
@@ -159,7 +159,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
component
.
$el
.
querySelector
(
'
.js-next-button
a
'
).
click
();
component
.
$el
.
querySelector
(
'
.js-next-button
.page-link
'
).
click
();
expect
(
spy
).
toHaveBeenCalledWith
(
4
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment