Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
ad793fb0
Commit
ad793fb0
authored
Dec 04, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-STAGING' into 'ENV-PROD'
issue ribet See merge request
!2218
parents
ea59a3da
4097b03f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
MaintenanceMode.js
src/container/GeneralSetting/MaintenanceMode.js
+17
-17
SubHolding.js
src/container/Reports/SubHolding.js
+2
-0
No files found.
src/container/GeneralSetting/MaintenanceMode.js
View file @
ad793fb0
...
...
@@ -235,34 +235,34 @@ class MaintenanceMode extends Component {
"maintenance_headline"
:
this
.
state
.
headline
,
"maintenance_content"
:
this
.
state
.
maintenanceContent
,
"maintenance_status"
:
this
.
state
.
maintenanceStatus
,
// "maintenance_mail": [
// {
// "mail_type": "MAINTENANCE_MODE_ACTIVE",
// "mail_subject": "TIA 4.0 Is Under Maintenance",
// "mail_body": "",
// "mail_status": 0
// },
// {
// "mail_type": "MAINTENANCE_MODE_INACTIVE",
// "mail_subject": "TIA 4.0 is Back",
// "mail_body": "",
// "mail_status": 1
// }
// ]
"maintenance_mail"
:
[
{
"mail_type"
:
"MAINTENANCE_MODE_ACTIVE"
,
"mail_subject"
:
this
.
state
.
subjectMailActive
,
"mail_body"
:
this
.
state
.
mailcontentModeActive
,
"mail_status"
:
this
.
state
.
mailStatusActive
"mail_status"
:
0
},
{
"mail_type"
:
"MAINTENANCE_MODE_INACTIVE"
,
"mail_subject"
:
this
.
state
.
subjectMailNonActive
,
"mail_body"
:
this
.
state
.
mailcontentModeNonActive
,
"mail_status"
:
this
.
state
.
mailStatusNonActive
"mail_status"
:
1
}
]
// "maintenance_mail": [
// {
// "mail_type": "MAINTENANCE_MODE_ACTIVE",
// "mail_subject": this.state.subjectMailActive,
// "mail_body": this.state.mailcontentModeActive,
// "mail_status": this.state.mailStatusActive
// },
// {
// "mail_type": "MAINTENANCE_MODE_INACTIVE",
// "mail_subject": this.state.subjectMailNonActive,
// "mail_body": this.state.mailcontentModeNonActive,
// "mail_status": this.state.mailStatusNonActive
// }
// ]
}
console
.
log
(
payload
);
api
.
create
().
updateMaintenanceMode
(
payload
).
then
((
response
)
=>
{
...
...
@@ -846,4 +846,4 @@ class MaintenanceMode extends Component {
}
}
export
default
MaintenanceMode
;
export
default
MaintenanceMode
;
\ No newline at end of file
src/container/Reports/SubHolding.js
View file @
ad793fb0
...
...
@@ -4344,6 +4344,8 @@ export default class SubHolding extends Component {
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
,
loading
:
true
,
previewTable
:
false
},
()
=>
{
this
.
getReportType
()
this
.
getCurrency
(
newInputValue
.
company_id
)
let
bizpar
=
this
.
state
.
usdBefore2024
==
false
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
this
.
setState
({
report
:
bizpar
[
0
],
reportType
:
bizpar
})
})}
disableClearable
style
=
{{
width
:
250
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment