-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added validation to onvif and hl7monitor asset pages #3586
Conversation
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@developedBySJ i have implemented useReducer hook |
Hey @developedBySJ i have refractored the code |
when i click save link button, iam getting both the notification, so can we add a validation there , for both monitor and camera page, is it possible |
@nihal467 yeah sure it can be done. |
Hey @nihal467 i have done the changes Camera configure pageMonitorConfigure page |
test approved |
Hi, This pr/issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs for 7 more days. Thank you for your contributions. |
Hey @khavinshankar i have done the changes. |
asset?.asset_class, | ||
asset?.meta?.middleware_hostname, | ||
asset?.meta?.local_ip_address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asset?.asset_class, | |
asset?.meta?.middleware_hostname, | |
asset?.meta?.local_ip_address | |
asset?.asset_class || "", | |
asset?.meta?.middleware_hostname || "", | |
asset?.meta?.local_ip_address || "" |
asset?.asset_class, | ||
asset?.meta?.middleware_hostname, | ||
asset?.meta?.local_ip_address, | ||
asset?.meta?.camera_access_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asset?.asset_class, | |
asset?.meta?.middleware_hostname, | |
asset?.meta?.local_ip_address, | |
asset?.meta?.camera_access_key | |
asset?.asset_class || "", | |
asset?.meta?.middleware_hostname || "", | |
asset?.meta?.local_ip_address || "", | |
asset?.meta?.camera_access_key || "" |
case "middlewareHostname": | ||
if (!state.form[field] || state.form[field].trim() === "") { | ||
errors[field] = "Field is required"; | ||
invalidForm = true; | ||
} | ||
return; | ||
case "cameraAccessKey": | ||
if (!state.form[field] || state.form[field].trim() === "") { | ||
errors[field] = "Field is required"; | ||
invalidForm = true; | ||
} | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case "middlewareHostname": | |
if (!state.form[field] || state.form[field].trim() === "") { | |
errors[field] = "Field is required"; | |
invalidForm = true; | |
} | |
return; | |
case "cameraAccessKey": | |
if (!state.form[field] || state.form[field].trim() === "") { | |
errors[field] = "Field is required"; | |
invalidForm = true; | |
} | |
return; | |
case "middlewareHostname": | |
case "cameraAccessKey": | |
if (!state.form[field] || state.form[field].trim() === "") { | |
errors[field] = "Field is required"; | |
invalidForm = true; | |
} | |
return; |
@patelaryan7751 just some minor refactors here and there |
👋 Hi, @patelaryan7751, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
SonarCloud Quality Gate failed.
|
👋 Hi, @patelaryan7751, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
I am openning a fresh PR for this issue |
Proposed Changes
Fixes #3585
![image](https://user-images.githubusercontent.com/59426397/190176109-c908c63a-5a83-4af6-a271-911a4e9748ba.png)
![image](https://user-images.githubusercontent.com/59426397/190176310-bcc8d48c-6f82-4d75-b1a9-74b8d78837f0.png)
Added validation to onvif and hl7monitor asset pages
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist