Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-smf-web
Commits
73aa280b
Commit
73aa280b
authored
2 years ago
by
BharathTarento
Browse files
Options
Download
Patches
Plain Diff
changes in the statusbar
parent
ec447b66
master
delete-form
delete-user
form-issue
1 merge request
!6
changes in the statusbar
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/form/FormViewer.js
+1
-0
src/components/form/FormViewer.js
src/components/status-bar/StatusBarLarge.tsx
+5
-3
src/components/status-bar/StatusBarLarge.tsx
with
6 additions
and
3 deletions
+6
-3
src/components/form/FormViewer.js
+
1
−
0
View file @
73aa280b
...
...
@@ -648,6 +648,7 @@ class FormViewer extends Component {
?
this
.
state
.
applicationDetails
.
notes
:
""
}
userRole
=
{
this
.
userRole
}
inspectorSummary
=
{
this
.
state
.
applicationDetails
.
status
===
LANG
.
FORM_STATUS
.
INSPECTION_COMPLETED
...
...
This diff is collapsed.
Click to expand it.
src/components/status-bar/StatusBarLarge.tsx
+
5
−
3
View file @
73aa280b
import
styles
from
"
./StatusBarLarge.module.css
"
;
import
stylesTwo
from
"
../modal/InspectionScheduleModal.module.css
"
;
import
{
LANG
}
from
"
../../constants
"
;
import
{
APP
,
LANG
}
from
"
../../constants
"
;
import
moment
from
"
moment
"
;
import
{
HeadingFour
}
from
"
../headings
"
;
...
...
@@ -22,6 +22,7 @@ interface StatusBarLargeProps {
comments
?:
any
;
approvedNote
?:
string
;
showInspectionDetails
:
boolean
;
userRole
?:
any
;
}
export
const
StatusBarLarge
=
({
...
...
@@ -37,6 +38,7 @@ export const StatusBarLarge = ({
isChange
,
approvedNote
,
showInspectionDetails
,
userRole
}:
StatusBarLargeProps
)
=>
{
// Function to format the status label
const
formatLabel
=
(
labelStatus
:
string
)
=>
{
...
...
@@ -149,8 +151,8 @@ export const StatusBarLarge = ({
{
label
&&
label
===
LANG
.
FORM_STATUS
.
SENT_FOR_INSPECTION
&&
(
<>
<
p
className
=
"text-center pt-3"
>
Inspection is scheduled
on
{
"
"
}
<
b
>
{
`
${
inspectionData
.
scheduledDate
}
`
}
</
b
>
. Keep all the physical
Inspection is scheduled
<
b
>
{
userRole
!==
APP
.
ROLE
.
INSTITUTION
&&
`on
${
inspectionData
.
scheduledDate
}
`
}
</
b
>
. Keep all the physical
documents ready for the inspection.
</
p
>
{
showInspectionDetails
&&
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets