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
adb25e73
Commit
adb25e73
authored
Feb 18, 2022
by
Jannik Lehmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace GlTable with GlTableLite for clusters Table
parent
51062bbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app/assets/javascripts/clusters_list/components/clusters.vue
app/assets/javascripts/clusters_list/components/clusters.vue
+4
-4
spec/frontend/clusters_list/components/clusters_spec.js
spec/frontend/clusters_list/components/clusters_spec.js
+3
-3
No files found.
app/assets/javascripts/clusters_list/components/clusters.vue
View file @
adb25e73
...
...
@@ -6,7 +6,7 @@ import {
GlPagination
,
GlDeprecatedSkeletonLoading
as
GlSkeletonLoading
,
GlSprintf
,
GlTable
,
GlTable
Lite
,
GlTooltipDirective
,
}
from
'
@gitlab/ui
'
;
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
...
...
@@ -27,7 +27,7 @@ export default {
GlPagination
,
GlSkeletonLoading
,
GlSprintf
,
GlTable
,
GlTable
Lite
,
NodeErrorHelpText
,
ClustersEmptyState
,
},
...
...
@@ -229,7 +229,7 @@ export default {
<section
v-else
>
<ancestor-notice
/>
<gl-table
<gl-table
-lite
v-if=
"hasClusters"
:items=
"clusters"
:fields=
"fields"
...
...
@@ -326,7 +326,7 @@ export default {
{{
value
}}
</gl-badge>
</
template
>
</gl-table>
</gl-table
-lite
>
<clusters-empty-state
v-else
:is-child-component=
"isChildComponent"
/>
...
...
spec/frontend/clusters_list/components/clusters_spec.js
View file @
adb25e73
...
...
@@ -2,7 +2,7 @@ import {
GlLoadingIcon
,
GlPagination
,
GlDeprecatedSkeletonLoading
as
GlSkeletonLoading
,
GlTable
,
GlTable
Lite
,
}
from
'
@gitlab/ui
'
;
import
*
as
Sentry
from
'
@sentry/browser
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
...
...
@@ -41,7 +41,7 @@ describe('Clusters', () => {
const
findLoader
=
()
=>
wrapper
.
findComponent
(
GlLoadingIcon
);
const
findPaginatedButtons
=
()
=>
wrapper
.
findComponent
(
GlPagination
);
const
findTable
=
()
=>
wrapper
.
findComponent
(
GlTable
);
const
findTable
=
()
=>
wrapper
.
findComponent
(
GlTable
Lite
);
const
findStatuses
=
()
=>
findTable
().
findAll
(
'
.js-status
'
);
const
findEmptyState
=
()
=>
wrapper
.
findComponent
(
ClustersEmptyState
);
...
...
@@ -51,7 +51,7 @@ describe('Clusters', () => {
const
createWrapper
=
({
propsData
=
{}
})
=>
{
store
=
ClusterStore
(
entryData
);
wrapper
=
mount
(
Clusters
,
{
propsData
,
provide
:
provideData
,
store
,
stubs
:
{
GlTable
}
});
wrapper
=
mount
(
Clusters
,
{
propsData
,
provide
:
provideData
,
store
,
stubs
:
{
GlTable
Lite
}
});
return
axios
.
waitForAll
();
};
...
...
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