Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
79b78c25
Commit
79b78c25
authored
Feb 25, 2021
by
Mustafa Gezen
🏗
Browse files
update ui to reflect backend changes
parent
cb19eb49
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/src/components/Dashboard.tsx
View file @
79b78c25
...
...
@@ -38,13 +38,13 @@ export const Dashboard = () => {
React
.
useEffect
(()
=>
{
(
async
()
=>
{
const
[
err
,
res
]
=
await
to
(
Axios
.
get
(
'
/
build/
imports/?size=5
'
));
const
[
err
,
res
]
=
await
to
(
Axios
.
get
(
'
/imports/?size=5
'
));
if
(
res
)
{
setImports
(
res
.
data
);
}
})().
then
();
(
async
()
=>
{
const
[
err
,
res
]
=
await
to
(
Axios
.
get
(
'
/build/?size=5
'
));
const
[
err
,
res
]
=
await
to
(
Axios
.
get
(
'
/build
s
/?size=5
'
));
if
(
res
)
{
setBuilds
(
res
.
data
);
}
...
...
ui/src/components/Packages.tsx
View file @
79b78c25
...
...
@@ -149,7 +149,7 @@ export const Packages = () => {
(
async
()
=>
{
const
ids
=
rowsToIds
(
rows
);
await
to
(
Axios
.
post
(
`/
build
${
imports
?
'
/imports
'
:
''
}
/batch`
,
ids
));
await
to
(
Axios
.
post
(
`/
${
imports
?
'
/imports
'
:
'
/builds
'
}
/batch`
,
ids
));
setShowImportModal
(
false
);
setShowBuildModal
(
false
);
...
...
@@ -202,7 +202,6 @@ export const Packages = () => {
getToolbarProps
,
getBatchActionProps
,
selectedRows
,
onInputChange
,
getTableProps
,
getTableContainerProps
,
})
=>
(
...
...
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