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
088ded3b
Commit
088ded3b
authored
2 years ago
by
Sakthivel G
Browse files
Options
Download
Patches
Plain Diff
refactor: Defect #57131
parent
dd3461ca
master
accept_file_type
cards-value-changes
delete-form
delete-user
form-issue
inspector-model
label-change
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/css/main.css
+1
-1
public/css/main.css
src/components/form/AddForm.js
+10
-3
src/components/form/AddForm.js
src/constants/LangConstants.ts
+2
-0
src/constants/LangConstants.ts
with
13 additions
and
4 deletions
+13
-4
public/css/main.css
+
1
−
1
View file @
088ded3b
...
...
@@ -2935,7 +2935,7 @@ button.active {
} */
.react-confirm-alert-body
{
color
:
var
(
--
white-9
0
)
!important
;
color
:
var
(
--
main-black6
0
)
!important
;
background
:
var
(
--input-background
)
!important
;
border-radius
:
unset
!important
;
}
...
...
This diff is collapsed.
Click to expand it.
src/components/form/AddForm.js
+
10
−
3
View file @
088ded3b
...
...
@@ -146,10 +146,17 @@ class AddForm extends Component {
};
removeElement
=
(
index
)
=>
{
// console.log(this.state.formElements)
// console.log(this.state.formElements);
confirmAlert
({
title
:
LANG
.
CONFIRM_TO_REMOVE
,
message
:
LANG
.
ARE_YOU_SURE_YOU_WANT_TO_DO_THIS
,
title
:
this
.
state
.
formElements
[
index
]
===
"
heading
"
?
LANG
.
HEADING_REMOVAL_WARNING
:
LANG
.
CONFIRM_TO_REMOVE
,
message
:
this
.
state
.
formElements
[
index
]
===
"
heading
"
?
LANG
.
CONFIRM_TO_REMOVE_2
:
LANG
.
ARE_YOU_SURE_YOU_WANT_TO_DO_THIS
,
buttons
:
[
{
label
:
LANG
.
REMOVE
,
...
...
This diff is collapsed.
Click to expand it.
src/constants/LangConstants.ts
+
2
−
0
View file @
088ded3b
...
...
@@ -52,4 +52,6 @@ export const LANG = {
CANCEL
:
"
Cancel
"
,
REMOVE
:
"
Remove
"
,
CONFIRM_TO_REMOVE
:
"
Confirm to remove
"
,
HEADING_REMOVAL_WARNING
:
"
Are you sure deleting the header?
"
,
CONFIRM_TO_REMOVE_2
:
"
This action will move the question section to the general header category.
"
,
};
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