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
d6f9e520
Commit
d6f9e520
authored
Feb 14, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'
fixing maintenance See merge request
!1695
parents
ceb43c76
2f583041
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
62 deletions
+62
-62
MaintenanceMode.js
src/container/GeneralSetting/MaintenanceMode.js
+40
-40
TableSubHolding.js
src/container/Reports/TableSubHolding.js
+22
-22
No files found.
src/container/GeneralSetting/MaintenanceMode.js
View file @
d6f9e520
...
...
@@ -169,34 +169,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"
:
0
}
]
// "maintenance_mail": [
// {
// "mail_type": "MAINTENANCE_MODE_ACTIVE",
// "mail_subject":
this.state.subjectMailActive
,
// "mail_body":
this.state.mailcontentModeActive
,
// "mail_status":
this.state.mailStatusActive
// "mail_subject":
"TIA 4.0 Is Under Maintenance"
,
// "mail_body":
""
,
// "mail_status":
0
// },
// {
// "mail_type": "MAINTENANCE_MODE_INACTIVE",
// "mail_subject":
this.state.subjectMailNonActive
,
// "mail_body":
this.state.mailcontentModeNonActive
,
// "mail_status":
this.state.mailStatusNonActive
// "mail_subject":
"TIA 4.0 is Back"
,
// "mail_body":
""
,
// "mail_status":
0
// }
// ]
"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
().
createMaintenanceMode
(
payload
).
then
((
response
)
=>
{
...
...
@@ -234,34 +234,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"
:
0
}
]
// "maintenance_mail": [
// {
// "mail_type": "MAINTENANCE_MODE_ACTIVE",
// "mail_subject":
this.state.subjectMailActive
,
// "mail_body":
this.state.mailcontentModeActive
,
// "mail_status":
this.state.mailStatusActive
// "mail_subject":
"TIA 4.0 Is Under Maintenance"
,
// "mail_body":
""
,
// "mail_status":
0
// },
// {
// "mail_type": "MAINTENANCE_MODE_INACTIVE",
// "mail_subject":
this.state.subjectMailNonActive
,
// "mail_body":
this.state.mailcontentModeNonActive
,
// "mail_status":
this.state.mailStatusNonActive
// "mail_subject":
"TIA 4.0 is Back"
,
// "mail_body":
""
,
// "mail_status":
0
// }
// ]
"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
)
=>
{
...
...
src/container/Reports/TableSubHolding.js
View file @
d6f9e520
This diff is collapsed.
Click to expand it.
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