Skip to content

Commit

Permalink
fix finish step button for career member
Browse files Browse the repository at this point in the history
  • Loading branch information
amshkv committed Aug 13, 2024
1 parent a9957ca commit 8f36972
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/career/step/member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Career::Step::Member < ApplicationRecord
state :finished

event :finish do
transitions from: :active, to: :finished
transitions to: :finished
end
end
end
3 changes: 2 additions & 1 deletion app/views/web/careers/members/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ ul.nav.nav-tabs.mt-2.mb-4

.col-lg-4
.text-center.mb-3
- if @career_step_member.finished?
/ NOTE: чиним ситуацию, если у пользователя пройдены все шаги, но он почему то не закончил карьерный трек
- if @career_step_member.finished? && recource_member.finished?
span.text-success.h4
= t('.step_finished')
- else
Expand Down

0 comments on commit 8f36972

Please sign in to comment.