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
0af4e0d7
Commit
0af4e0d7
authored
Feb 14, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintenance
parent
78805a6f
Changes
2
Hide 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 @
0af4e0d7
...
...
@@ -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 @
0af4e0d7
...
...
@@ -19829,7 +19829,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-2">
<div className="col-2"
style={{ left: 12}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -19841,7 +19841,7 @@ export default class TableSubHolding extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: this.props.approvedMB ? '#000000de' : '#5198ea', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent'
}}
style={{ color: this.props.approvedMB ? '#000000de' : '#5198ea', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent'}}
type="text"
placeholder=""
disabled={true}
...
...
@@ -19852,7 +19852,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-3">
<div className="col-3"
style={{ left: 28}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -19875,7 +19875,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-4">
<div className="col-4"
style={{ left: 42}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -19899,7 +19899,7 @@ export default class TableSubHolding extends Component {
}
</div>
</div>
<div className="grid grid-4x content-center">
<div className="grid grid-4x content-center"
style={{ left: 56}}
>
<div className="col-1">
{tableMeta.rowData[0] === 4 ?
null
...
...
@@ -19923,7 +19923,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-2">
<div className="col-2"
style={{ left: 14}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -19946,7 +19946,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-3">
<div className="col-3"
style={{ left: 28}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -19969,7 +19969,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-4">
<div className="col-4"
style={{ left: 43}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -19993,7 +19993,7 @@ export default class TableSubHolding extends Component {
}
</div>
</div>
<div className="grid grid-5x content-center">
<div className="grid grid-5x content-center"
style={{ left: 85}}
>
<div className="col-1">
{tableMeta.rowData[0] === 4 ?
null
...
...
@@ -20017,7 +20017,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-2">
<div className="col-2"
style={{ right: 13}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20040,7 +20040,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-3">
<div className="col-3"
style={{ right: 26}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20063,7 +20063,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-4">
<div className="col-4"
style={{ right: 40}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20086,7 +20086,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-5">
<div className="col-5"
style={{ right: 50}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20289,7 +20289,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-2">
<div className="col-2"
style={{ left: 14}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20312,7 +20312,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-3">
<div className="col-3"
style={{ left: 28}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20335,7 +20335,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-4">
<div className="col-4"
style={{ left: 44}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20359,7 +20359,7 @@ export default class TableSubHolding extends Component {
}
</div>
</div>
<div className="grid grid-4x content-center">
<div className="grid grid-4x content-center"
style={{ left: 55}}
>
<div className="col-1">
{tableMeta.rowData[0] === 4 ?
null
...
...
@@ -20383,7 +20383,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-2">
<div className="col-2"
style={{ left: 15}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20406,7 +20406,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-3">
<div className="col-3"
style={{ left: 30}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20429,7 +20429,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-4">
<div className="col-4"
style={{ left: 45}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
...
...
@@ -20453,7 +20453,7 @@ export default class TableSubHolding extends Component {
}
</div>
</div>
<div className="grid grid-5x content-center">
<div className="grid grid-5x content-center"
style={{ left: 88}}
>
<div className="col-1">
{tableMeta.rowData[0] === 4 ?
null
...
...
@@ -20477,7 +20477,7 @@ export default class TableSubHolding extends Component {
</div>
}
</div>
<div className="col-2">
<div className="col-2"
style={{ right: 12}}
>
{tableMeta.rowData[0] === 4 ?
null
: tableMeta.rowData[0] === 1 ?
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