Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cicer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meskio
cicer
Commits
24291e76
Commit
24291e76
authored
4 years ago
by
meskio
Browse files
Options
Downloads
Patches
Plain Diff
Improve responsiveness of order creation
parent
d7049d3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/App.js
+1
-1
1 addition, 1 deletion
src/App.js
src/Head.js
+13
-11
13 additions, 11 deletions
src/Head.js
src/ProductPicker.js
+6
-6
6 additions, 6 deletions
src/ProductPicker.js
with
20 additions
and
18 deletions
src/App.js
+
1
−
1
View file @
24291e76
...
...
@@ -23,7 +23,7 @@ function Panel(props) {
<
div
>
<
BrowserRouter
>
<
Head
onLogout
=
{
props
.
onLogout
}
/
>
<
Container
>
<
Container
fluid
=
"
lg
"
>
<
Switch
>
<
Route
path
=
"
/members/add
"
>
<
MemberAdder
/>
...
...
This diff is collapsed.
Click to expand it.
src/Head.js
+
13
−
11
View file @
24291e76
...
...
@@ -14,22 +14,22 @@ function Head(props) {
adminNav
=
(
<
NavDropdown
title
=
"
Admin
"
id
=
"
admin
"
>
<
LinkContainer
to
=
"
/members/purchase
"
>
<
Nav
.
Link
>
Compra
<
/Nav.Link
>
<
Nav
Dropdown
.
Item
>
Compra
<
/NavDropdown.Item
>
<
/LinkContainer
>
<
LinkContainer
to
=
"
/members
"
>
<
Nav
.
Link
>
Socias
<
/Nav.Link
>
<
Nav
Dropdown
.
Item
>
Socias
<
/NavDropdown.Item
>
<
/LinkContainer
>
<
LinkContainer
to
=
"
/topup
"
>
<
Nav
.
Link
>
Recarga
<
/Nav.Link
>
<
Nav
Dropdown
.
Item
>
Recarga
<
/NavDropdown.Item
>
<
/LinkContainer
>
<
LinkContainer
to
=
"
/members/add
"
>
<
Nav
.
Link
>
Nueva
socia
<
/Nav
.Link
>
<
Nav
Dropdown
.
Item
>
Nueva
socia
<
/Nav
Dropdown.Item
>
<
/LinkContainer
>
<
/NavDropdown
>
);
}
return
(
<
Navbar
bg
=
"
light
"
>
<
Navbar
bg
=
"
light
"
expand
=
"
sm
"
>
<
LinkContainer
to
=
"
/
"
>
<
Navbar
.
Brand
>
<
img
...
...
@@ -55,13 +55,15 @@ function Head(props) {
<
/LinkContainer
>
<
/Nav
>
<
NavDropdown
title
=
"
Ajustes
"
id
=
"
ajustes
"
>
<
LinkContainer
to
=
"
/password
"
>
<
Nav
.
Link
>
Cambiar
contraseña
<
/Nav.Link
>
<
/LinkContainer
>
<
/NavDropdown
>
<
Nav
className
=
"
ml-auto
"
activeKey
=
{
location
.
pathname
}
>
<
NavDropdown
title
=
"
Ajustes
"
id
=
"
ajustes
"
>
<
LinkContainer
to
=
"
/password
"
>
<
NavDropdown
.
Item
>
Cambiar
contraseña
<
/NavDropdown.Item
>
<
/LinkContainer
>
<
/NavDropdown
>
{
adminNav
}
{
adminNav
}
<
/Nav
>
<
Form
inline
>
<
Button
variant
=
"
outline-success
"
onClick
=
{
props
.
onLogout
}
>
Salir
...
...
This diff is collapsed.
Click to expand it.
src/ProductPicker.js
+
6
−
6
View file @
24291e76
...
...
@@ -58,7 +58,7 @@ class ProductPicker extends React.Component {
<
Col
>
<
p
>
{
p
.
code
}
<
/p
>
<
/Col
>
<
Col
s
m
=
{
4
}
>
<
Col
x
s
=
{
4
}
>
<
p
>
{
p
.
name
}
<
/p
>
<
/Col
>
<
Col
>
{
printMoney
(
p
.
price
)
+
"
€
"
}
<
/Col
>
...
...
@@ -73,7 +73,7 @@ class ProductPicker extends React.Component {
/
>
<
/Col
>
)}
<
Col
s
m
=
{
1
}
>
<
Col
x
s
=
{
1
}
>
<
Button
variant
=
"
danger
"
onClick
=
{()
=>
this
.
delPick
(
i
)}
>
-
<
/Button
>
...
...
@@ -91,7 +91,7 @@ class ProductPicker extends React.Component {
<
Col
>
<
h6
>
Código
<
/h6
>
<
/Col
>
<
Col
s
m
=
{
4
}
>
<
Col
x
s
=
{
4
}
>
<
h6
>
Nombre
<
/h6
>
<
/Col
>
<
Col
>
...
...
@@ -102,7 +102,7 @@ class ProductPicker extends React.Component {
<
h6
>
Cantidad
<
/h6
>
<
/Col
>
)}
<
Col
s
m
=
{
1
}
><
/Col
>
<
Col
x
s
=
{
1
}
><
/Col
>
<
/Row
>
{
rows
}
<
Form
.
Group
as
=
{
Row
}
>
...
...
@@ -113,7 +113,7 @@ class ProductPicker extends React.Component {
onChange
=
{(
e
)
=>
this
.
setCode
(
e
.
target
.
value
)}
/
>
<
/Col
>
<
Col
s
m
=
{
4
}
>
<
Col
x
s
=
{
4
}
>
<
Typeahead
id
=
"
product-name
"
labelKey
=
"
name
"
...
...
@@ -124,7 +124,7 @@ class ProductPicker extends React.Component {
<
/Col
>
<
Col
><
/Col
>
{
this
.
props
.
amount
&&
<
Col
><
/Col>
}
<
Col
s
m
=
{
1
}
><
/Col
>
<
Col
x
s
=
{
1
}
><
/Col
>
<
/Form.Group
>
<
/Fetcher
>
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment