Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
2c191b08
Commit
2c191b08
authored
May 28, 2021
by
Hamza HRAMCHI
Browse files
FIX #16956 TIME 0:25 disable add date block button if external user
parent
bdf8c6b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.html
View file @
2c191b08
...
...
@@ -85,7 +85,7 @@
<mat-icon
class=
"fas fa-plus"
style=
"height: auto"
></mat-icon>
</button>
<mat-menu
#actionPosMenu
="
matMenu
"
>
<button
mat-menu-item
[disabled]=
"!emptyDate()"
<button
mat-menu-item
[disabled]=
"!emptyDate()
|| !checkExternalUser()
"
(click)=
"initDateBlock()"
>
{{'lang.addDateBlock' | translate}}
</button>
<button
mat-menu-item
[disabled]=
"!emptySign()"
(click)=
"initSign()"
>
{{'lang.addSignaturePosition' | translate}}
</button>
...
...
src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.ts
View file @
2c191b08
...
...
@@ -262,4 +262,8 @@ export class SignaturePositionComponent implements OnInit {
})
).
subscribe
();
}
checkExternalUser
()
{
return
this
.
data
.
workflow
[
this
.
currentUser
].
item_id
!==
null
?
true
:
false
;
}
}
Write
Preview
Supports
Markdown
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