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
221bf1d4
Commit
221bf1d4
authored
Aug 25, 2020
by
Mike Jang
Committed by
Sarah Groff Hennigh-Palermo
Aug 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deprecated button for project.vue
parent
f2c27366
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
ee/app/assets/javascripts/storage_counter/components/project.vue
...assets/javascripts/storage_counter/components/project.vue
+5
-4
ee/spec/frontend/storage_counter/components/project_spec.js
ee/spec/frontend/storage_counter/components/project_spec.js
+3
-3
No files found.
ee/app/assets/javascripts/storage_counter/components/project.vue
View file @
221bf1d4
<
script
>
import
{
Gl
Deprecated
Button
,
GlLink
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlLink
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
ProjectAvatar
from
'
~/vue_shared/components/project_avatar/default.vue
'
;
import
{
numberToHumanSize
,
isOdd
}
from
'
~/lib/utils/number_utils
'
;
import
{
s__
}
from
'
~/locale
'
;
...
...
@@ -8,7 +8,7 @@ import StorageRow from './storage_row.vue';
export
default
{
components
:
{
GlIcon
,
Gl
Deprecated
Button
,
GlButton
,
GlLink
,
ProjectAvatar
,
StorageRow
,
...
...
@@ -87,13 +87,14 @@ export default {
<div
class=
"table-section section-wrap section-70 text-truncate"
role=
"gridcell"
>
<div
class=
"table-mobile-header font-weight-bold"
role=
"rowheader"
>
{{
__
(
'
Project
'
)
}}
</div>
<div
class=
"table-mobile-content"
>
<gl-
deprecated-
button
<gl-button
class=
"btn-transparent float-left p-0 mr-2"
:aria-label=
"__('Toggle project')"
category=
"tertiary"
@
click=
"toggleProject"
>
<gl-icon
:name=
"iconName"
class=
"folder-icon"
/>
</gl-
deprecated-
button>
</gl-button>
<project-avatar
:project=
"projectAvatar"
:size=
"20"
/>
...
...
ee/spec/frontend/storage_counter/components/project_spec.js
View file @
221bf1d4
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
Gl
Deprecated
Button
}
from
'
@gitlab/ui
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
Project
from
'
ee/storage_counter/components/project.vue
'
;
import
ProjectAvatar
from
'
~/vue_shared/components/project_avatar/default.vue
'
;
import
{
numberToHumanSize
}
from
'
~/lib/utils/number_utils
'
;
...
...
@@ -54,11 +54,11 @@ describe('Storage Counter project component', () => {
it
(
'
toggles isOpen
'
,
()
=>
{
expect
(
wrapper
.
vm
.
isOpen
).
toEqual
(
false
);
wrapper
.
find
(
Gl
Deprecated
Button
).
vm
.
$emit
(
'
click
'
);
wrapper
.
find
(
GlButton
).
vm
.
$emit
(
'
click
'
);
expect
(
wrapper
.
vm
.
isOpen
).
toEqual
(
true
);
wrapper
.
find
(
Gl
Deprecated
Button
).
vm
.
$emit
(
'
click
'
);
wrapper
.
find
(
GlButton
).
vm
.
$emit
(
'
click
'
);
expect
(
wrapper
.
vm
.
isOpen
).
toEqual
(
false
);
});
...
...
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