Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDDD27_Advance Web Programming
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Muhammad Ismail
TDDD27_Advance Web Programming
Commits
5b25601c
Commit
5b25601c
authored
4 years ago
by
Ismail
Browse files
Options
Downloads
Patches
Plain Diff
fix some shift start and other button Errors!
parent
11dedf10
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
employeemanagement/src/components/layout/ManageShift.js
+4
-4
4 additions, 4 deletions
employeemanagement/src/components/layout/ManageShift.js
with
4 additions
and
4 deletions
employeemanagement/src/components/layout/ManageShift.js
+
4
−
4
View file @
5b25601c
...
...
@@ -46,25 +46,25 @@ class ManageShift extends Component {
render
()
{
const
worklist
=
this
.
props
.
todayList
&&
this
.
props
.
todayList
.
length
?
(
this
.
props
.
todayList
&&
this
.
props
.
todayList
.
map
(
w
=>
{
const
startWork
=
w
.
startShift
!==
''
?
(
const
startWork
=
w
.
startShift
!==
""
?
(
<
button
disabled
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Start
Work
<
/button
>
)
:
(
<
button
onClick
=
{
this
.
handleCreatEvent
}
id
=
"
startShift
"
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Start
Work
<
/button
>
)
const
startBreak
=
w
.
startBreak
=
==
''
&&
w
.
startShift
=
==
''
?
(
const
startBreak
=
w
.
startBreak
!
==
''
&&
w
.
startShift
!
==
''
?
(
<
button
disabled
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Start
Lunch
Break
<
/button
>
)
:
(
<
button
onClick
=
{
this
.
handleUpdateEvent
}
id
=
"
startBreak
"
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Start
Lunch
Break
<
/button
>
)
const
endBreak
=
w
.
endBreak
=
==
''
&&
w
.
startBreak
=
==
''
?
(
const
endBreak
=
w
.
endBreak
!
==
''
&&
w
.
startBreak
!
==
''
?
(
<
button
disabled
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Lunch
Break
Finish
<
/button
>
)
:
(
<
button
onClick
=
{
this
.
handleUpdateEvent
}
id
=
"
endBreak
"
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Lunch
Break
Finish
<
/button
>
)
const
endWork
=
w
.
endShift
=
==
''
&&
w
.
endBreak
=
==
''
?
(
const
endWork
=
w
.
endShift
!
==
''
&&
w
.
endBreak
!
==
''
?
(
<
button
disabled
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Close
Work
<
/button
>
)
:
(
<
button
onClick
=
{
this
.
handleUpdateEvent
}
id
=
"
endShift
"
type
=
"
button
"
className
=
"
btn btn-success btn-sm btn-special
"
>
Close
Work
<
/button
>
...
...
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