File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed
IssueManagement/IssueCrud Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " javascript-crud-with-sampletasks" ,
3
- "version" : " 1 .0" ,
3
+ "version" : " 2.0 .0" ,
4
4
"homepage" : " https://mohamedrizwan399.github.io/CRUDJavaScriptSampleProject" ,
5
5
"private" : true ,
6
6
"dependencies" : {
11
11
"axios" : " ^1.7.7" ,
12
12
"cors" : " ^2.8.5" ,
13
13
"firebase" : " ^11.0.1" ,
14
- "gh-pages" : " ^6.2 .0" ,
14
+ "gh-pages" : " ^6.3 .0" ,
15
15
"jest" : " ^27.5.1" ,
16
16
"jwt-decode" : " ^3.1.2" ,
17
17
"nodemon" : " ^3.1.7" ,
Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ export const IssueCreationPage = () => {
100
100
}
101
101
102
102
if ( insertbool ) {
103
+ const isIdAlreadyExists = issues ?. find ( issue => issue ?. id === id ) ;
104
+ if ( isIdAlreadyExists !== undefined && isIdAlreadyExists ?. id === id ) {
105
+ alert ( "ID is already Exists. Check your created issues list to edit or create new issue using different Id." )
106
+ return ;
107
+ }
103
108
setissues ( [ ...issues , issue ] ) ;
104
109
} else {
105
110
const editable = JSON . parse ( localStorage . getItem ( "issueData" ) ) ;
@@ -140,14 +145,8 @@ export const IssueCreationPage = () => {
140
145
} < br > </ br > < br > </ br >
141
146
142
147
End date:   
143
- < select id = "selectend" onChange = { ( e ) => setEndDate ( e . target . value ) } value = { enddate } >
144
- < option > </ option >
145
- < option > OCT 1</ option >
146
- < option > OCT 2</ option >
147
- < option > OCT 3</ option >
148
- < option > OCT 3</ option >
149
- < option > OCT 5</ option >
150
- </ select >
148
+ < input id = "selectend" type = "date" onChange = { ( e ) => setEndDate ( e . target . value ) } value = { enddate } />
149
+
151
150
{ errorenddate ?
152
151
< label > Select End Date for this issue*</ label > :""
153
152
} < br > </ br > < br > </ br >
@@ -181,7 +180,7 @@ export const IssueCreationPage = () => {
181
180
< option > </ option >
182
181
< option > OPEN</ option >
183
182
< option > INPROGRESS</ option >
184
- < option > CLOSED</ option >
183
+ { ! insertbool && < option > CLOSED</ option > }
185
184
</ select >
186
185
{ errorstatus ?
187
186
< label > Please select the status*</ label > :""
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Demo extends React.Component{
31
31
< div className = "othertask-container" >
32
32
< div className = "instantChange-container" >
33
33
Enter your Name: < input type = "text" onChange = { e => this . inputchange ( e , "name" ) } />
34
- Enter your Age: < input type = "number " onChange = { e => this . inputchange ( e , "age" ) } />
34
+ Enter your Age: < input type = "range" min = "1" max = "99 " onChange = { e => this . inputchange ( e , "age" ) } />
35
35
36
36
< h1 > Name: { name } < br /> Your Age: { age } </ h1 >
37
37
</ div >
You can’t perform that action at this time.
0 commit comments