Skip to content

Commit

Permalink
[FIX] sign_oca: fix sign button interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
kobros-tech committed Feb 13, 2025
1 parent 39b2eab commit 560d8ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ export class SignOcaPdfPortal extends SignOcaPdf {
this.to_sign = this.to_sign_update;
if (this.to_sign_update) {
$(this.signOcaFooter.el).show();
$("#sign_oca_button").removeAttr("disabled");
} else {
$(this.signOcaFooter.el).hide();
$("#sign_oca_button").prop("disabled", true);
}
}
postIframeFields() {
Expand Down
4 changes: 2 additions & 2 deletions sign_oca/static/src/elements/check.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ const checkSignOca = {
});
return input;
},
check: function () {
return true;
check: function (item) {
return Boolean(item.value);
},
};
registry.category("sign_oca").add("check", checkSignOca);

0 comments on commit 560d8ec

Please sign in to comment.