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
4d1c01ad
Commit
4d1c01ad
authored
Mar 24, 2020
by
Nick Kipling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small change to request action
parent
90db8029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ee/app/assets/javascripts/packages/list/stores/actions.js
ee/app/assets/javascripts/packages/list/stores/actions.js
+2
-4
No files found.
ee/app/assets/javascripts/packages/list/stores/actions.js
View file @
4d1c01ad
...
...
@@ -29,15 +29,13 @@ export const requestPackagesList = ({ dispatch, state }, params = {}) => {
const
{
sort
,
orderBy
}
=
state
.
sorting
;
const
type
=
state
.
selectedType
?.
type
?.
toLowerCase
();
const
packageType
=
{
package_type
:
type
};
const
nameFilter
=
state
.
filterQuery
?.
toLowerCase
();
const
package
Name
=
{
package_name
:
nameFilter
};
const
package
Filters
=
{
package_type
:
type
,
package_name
:
nameFilter
};
const
apiMethod
=
state
.
config
.
isGroupPage
?
'
groupPackages
'
:
'
projectPackages
'
;
return
Api
[
apiMethod
](
state
.
config
.
resourceId
,
{
params
:
{
page
,
per_page
,
sort
,
order_by
:
orderBy
,
...
package
Type
,
...
packageName
},
params
:
{
page
,
per_page
,
sort
,
order_by
:
orderBy
,
...
package
Filters
},
})
.
then
(({
data
,
headers
})
=>
{
dispatch
(
'
receivePackagesListSuccess
'
,
{
data
,
headers
});
...
...
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