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
6fca9d68
Commit
6fca9d68
authored
Feb 20, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintenance mode
parent
b4da10f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
MaintenanceMode.js
src/container/GeneralSetting/MaintenanceMode.js
+21
-21
No files found.
src/container/GeneralSetting/MaintenanceMode.js
View file @
6fca9d68
...
...
@@ -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"
:
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
().
createMaintenanceMode
(
payload
).
then
((
response
)
=>
{
...
...
@@ -245,7 +245,7 @@ class MaintenanceMode extends Component {
// "mail_type": "MAINTENANCE_MODE_INACTIVE",
// "mail_subject": "TIA 4.0 is Back",
// "mail_body": "",
// "mail_status":
0
// "mail_status":
1
// }
// ]
"maintenance_mail"
:
[
...
...
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