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
6e0676a6
Commit
6e0676a6
authored
Mar 04, 2026
by
Hardiansyah
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'
tambah kondisi button budget tahunan See merge request
!2397
parents
aeb96bd4
54614688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+4
-6
No files found.
src/container/BudgetTahunan/BudgetTahunan.js
View file @
6e0676a6
...
...
@@ -221,11 +221,11 @@ export default class BudgetTahunan extends Component {
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
data
.
is_approver
===
true
)
{
this
.
setState
({
truelyApprover
:
true
,
isApprover
:
true
,
permissionhandle
:
true
,
checkApprover
:
true
},
()
=>
{
this
.
setState
({
truelyApprover
:
true
,
isApprover
:
true
,
isApproverFinance
:
response
.
data
.
data
.
is_finance
,
isApproverCAT
:
response
.
data
.
data
.
is_cat
,
permissionhandle
:
true
,
checkApprover
:
true
},
()
=>
{
this
.
getPeriode
()
})
}
else
{
this
.
setState
({
truelyApprover
:
false
,
isApprover
:
false
,
permissionhandle
:
false
,
checkApprover
:
false
},
()
=>
this
.
setState
({
truelyApprover
:
false
,
isApprover
:
false
,
isApproverFinance
:
false
,
isApproverCAT
:
false
,
permissionhandle
:
false
,
checkApprover
:
false
},
()
=>
this
.
getDetailUser
())
}
}
else
{
...
...
@@ -3526,8 +3526,7 @@ export default class BudgetTahunan extends Component {
<
/div
>
)}
<
/div
>
{
/* {this.state.checkApprover && this.state.isApproverFinance && this.renderBtnSubmit(mstIdFinance)} */
}
{
this
.
renderBtnSubmit
(
mstIdFinance
)}
{((
this
.
state
.
checkApprover
&&
this
.
state
.
isApproverFinance
)
||
this
.
state
.
submitter
)
&&
this
.
renderBtnSubmit
(
mstIdFinance
)}
<
div
style
=
{{
padding
:
'0 20px 20px'
}}
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
}}
>
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'#4b4b4b'
,
fontWeight
:
'bold'
}}
>
Report
CAT
<
/Typography
>
...
...
@@ -3569,8 +3568,7 @@ export default class BudgetTahunan extends Component {
<
/div
>
)}
<
/div
>
{
/* {this.state.checkApprover && this.state.isApproverCAT && this.renderBtnSubmit(mstIdCAT)} */
}
{
this
.
renderBtnSubmit
(
mstIdCAT
)}
{((
this
.
state
.
checkApprover
&&
this
.
state
.
isApproverCAT
)
||
this
.
state
.
submitterCAT
)
&&
this
.
renderBtnSubmit
(
mstIdCAT
)}
<
/Paper
>
<
/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