Skip to content

Commit

Permalink
Disable candidate proposal until desc & amount set
Browse files Browse the repository at this point in the history
  • Loading branch information
madis committed Jan 13, 2025
1 parent 44dcc87 commit 329cd3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions ui/resources/public/less/component/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@
&.disabled {
#mixin.box-shadow.none();
opacity: 0.7;
color: #color[purple];
background-color: rgba(0,0,0,0.0);

> .button-label {
color: #color[purple];
}

&:hover {
color: white;
Expand Down
5 changes: 4 additions & 1 deletion ui/src/ethlance/ui/page/job_detail.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@
candidate-role? (and
(get-in result [:user :user/is-registered-candidate])
(not (ilike= active-user *employer-address))
(not (some #(ilike= active-user (:user/id %)) (get-in result [:job :arbitrations :items]))))]
(not (some #(ilike= active-user (:user/id %)) (get-in result [:job :arbitrations :items]))))
proposal-ready? (and (< 0 (get @*proposal-token-amount :token-amount))
(not (empty? @*proposal-text)))]
[:div.proposal-listing
[:div.label "Proposals"]
[c-scrollable
Expand Down Expand Up @@ -193,6 +195,7 @@
[c-button-label "Remove"]])
(when (not my-proposal?)
[c-button {:style (when (not can-send-proposals?) {:background :gray})
:disabled? (not proposal-ready?)
:on-click (fn []
(when can-send-proposals?
(>evt [:page.job-proposal/send contract-address *job-token-type])))
Expand Down

0 comments on commit 329cd3c

Please sign in to comment.