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
50d7ae93
Commit
50d7ae93
authored
Dec 15, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-riri' into 'ENV-DEV'
maintenance mode See merge request
!2262
parents
2d0edb47
e51303f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
MaintenanceMode.js
src/container/GeneralSetting/MaintenanceMode.js
+40
-0
No files found.
src/container/GeneralSetting/MaintenanceMode.js
View file @
50d7ae93
...
@@ -89,6 +89,7 @@ class MaintenanceMode extends Component {
...
@@ -89,6 +89,7 @@ class MaintenanceMode extends Component {
maintenanceStatus
:
0
,
maintenanceStatus
:
0
,
mailStatusActive
:
0
,
mailStatusActive
:
0
,
mailStatusNonActive
:
0
,
mailStatusNonActive
:
0
,
visibleAlertSave
:
false
}
}
...
@@ -203,6 +204,7 @@ class MaintenanceMode extends Component {
...
@@ -203,6 +204,7 @@ class MaintenanceMode extends Component {
// ]
// ]
}
}
console
.
log
(
payload
);
console
.
log
(
payload
);
this
.
setState
({
visibleAlertSave
:
true
})
api
.
create
().
createMaintenanceMode
(
payload
).
then
((
response
)
=>
{
api
.
create
().
createMaintenanceMode
(
payload
).
then
((
response
)
=>
{
console
.
log
(
response
)
console
.
log
(
response
)
this
.
setState
({
loading
:
true
})
this
.
setState
({
loading
:
true
})
...
@@ -271,6 +273,7 @@ class MaintenanceMode extends Component {
...
@@ -271,6 +273,7 @@ class MaintenanceMode extends Component {
// ]
// ]
}
}
console
.
log
(
payload
);
console
.
log
(
payload
);
this
.
setState
({
visibleAlertSave
:
true
})
api
.
create
().
updateMaintenanceMode
(
payload
).
then
((
response
)
=>
{
api
.
create
().
updateMaintenanceMode
(
payload
).
then
((
response
)
=>
{
console
.
log
(
response
)
console
.
log
(
response
)
this
.
setState
({
loading
:
true
})
this
.
setState
({
loading
:
true
})
...
@@ -846,6 +849,43 @@ class MaintenanceMode extends Component {
...
@@ -846,6 +849,43 @@ class MaintenanceMode extends Component {
<
/Paper
>
<
/Paper
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
{
this
.
state
.
visibleAlertSave
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content border-radius"
style
=
{{
background
:
'#D9D9D9'
,
borderRadius
:
10
,
width
:
561
,
height
:
233
}}
>
<
div
style
=
{{
margin
:
25
}}
>
<
div
style
=
{{
display
:
'flex'
,
marginTop
:
76
,
marginBottom
:
43
}}
>
<
div
style
=
{{
alignSelf
:
'center'
,
marginRight
:
25
}}
>
<
img
src
=
{
Images
.
berhasil
}
/
>
<
/div
>
<
div
style
=
{{
justifyContent
:
'center'
,
fontSize
:
20
,
color
:
'#1D2995'
,
marginTop
:
10
}}
>
Maintenance
mode
deactivated
successfully
!
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
button
className
=
"button"
type
=
"button"
style
=
{{
background
:
'#F6F7F9'
,
cursor
:
'pointer'
,
border
:
'1px solid #3549609e'
,
outline
:
'none'
,
marginRight
:
20
,
borderRadius
:
9
}}
onClick
=
{()
=>
this
.
setState
({
visibleAlertSave
:
false
})}
>
<
div
style
=
{{
backgroundColor
:
'#fff'
,
width
:
105
,
height
:
30
,
borderRadius
:
9
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
border
:
'solid 1px #3549609e'
}}
>
<
Typography
style
=
{{
fontSize
:
'15px'
,
color
:
'#354960'
,
textAlign
:
'center'
}}
>
Close
<
/Typography
>
<
/div
>
<
/button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
}
<
/div
>
<
/div
>
);
);
...
...
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