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
c71e422a
Commit
c71e422a
authored
Aug 10, 2020
by
Juan J. Ramirez
Committed by
Miguel Rincon
Aug 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Button migration in security dashboard
parent
2e565228
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
ee/app/assets/javascripts/security_dashboard/components/first_class_project_manager/project_list.vue
...d/components/first_class_project_manager/project_list.vue
+6
-9
ee/changelogs/unreleased/remove-project.yml
ee/changelogs/unreleased/remove-project.yml
+5
-0
ee/spec/frontend/security_dashboard/components/first_class_project_manager/project_list_spec.js
...mponents/first_class_project_manager/project_list_spec.js
+2
-2
No files found.
ee/app/assets/javascripts/security_dashboard/components/first_class_project_manager/project_list.vue
View file @
c71e422a
<
script
>
import
{
GlDeprecatedBadge
as
GlBadge
,
Gl
Deprecated
Button
,
GlButton
,
GlLoadingIcon
,
GlTooltipDirective
,
}
from
'
@gitlab/ui
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
ProjectAvatar
from
'
~/vue_shared/components/project_avatar/default.vue
'
;
export
default
{
components
:
{
GlBadge
,
Gl
Deprecated
Button
,
GlButton
,
GlLoadingIcon
,
Icon
,
ProjectAvatar
,
},
directives
:
{
...
...
@@ -55,14 +53,13 @@ export default {
<span>
{{
project
.
name_with_namespace
||
project
.
nameWithNamespace
}}
</span>
<gl-
deprecated-
button
<gl-button
v-gl-tooltip
class=
"ml-auto bg-transparent border-0 p-0 text-secondary js-projects-list-project-remove"
icon=
"remove"
class=
"gl-ml-auto js-projects-list-project-remove"
:title=
"s__('SecurityReports|Remove project from dashboard')"
@
click=
"projectRemoved(project)"
>
<icon
name=
"remove"
/>
</gl-deprecated-button>
/>
</li>
</ul>
<p
v-else
class=
"text-secondary js-projects-list-empty-message"
>
...
...
ee/changelogs/unreleased/remove-project.yml
0 → 100644
View file @
c71e422a
---
title
:
Button migration to component
merge_request
:
author
:
type
:
changed
ee/spec/frontend/security_dashboard/components/first_class_project_manager/project_list_spec.js
View file @
c71e422a
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlDeprecatedBadge
as
GlBadge
,
Gl
Deprecated
Button
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
GlDeprecatedBadge
as
GlBadge
,
GlButton
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
ProjectList
from
'
ee/security_dashboard/components/first_class_project_manager/project_list.vue
'
;
import
ProjectAvatar
from
'
~/vue_shared/components/project_avatar/default.vue
'
;
...
...
@@ -96,7 +96,7 @@ describe('Project List component', () => {
const
mockProjects
=
generateMockProjects
(
1
);
const
[
projectData
]
=
mockProjects
;
factory
({
projects
:
mockProjects
,
stubs
:
{
Gl
Deprecated
Button
}
});
factory
({
projects
:
mockProjects
,
stubs
:
{
GlButton
}
});
getFirstRemoveButton
().
vm
.
$emit
(
'
click
'
);
...
...
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