mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Fix self host onboarding
This commit is contained in:
parent
1210a8f3a3
commit
84eb2c90d4
3 changed files with 11 additions and 2 deletions
|
@ -7,6 +7,9 @@
|
|||
{ name: "Start", path: trial_onboarding_path, is_complete: user.onboarded_at.present?, step_number: 4 },
|
||||
] %>
|
||||
|
||||
<%# Don't show last step if self hosted %>
|
||||
<% steps.pop if self_hosted? %>
|
||||
|
||||
<ul class="hidden md:flex items-center gap-2">
|
||||
<% steps.each_with_index do |step, idx| %>
|
||||
<li class="flex items-center gap-2 group">
|
||||
|
|
|
@ -20,9 +20,13 @@
|
|||
</div>
|
||||
|
||||
<%= form_with model: @user do |form| %>
|
||||
<%= form.hidden_field :redirect_to, value: "trial" %>
|
||||
<%= form.hidden_field :redirect_to, value: self_hosted? ? "home" : "trial" %>
|
||||
<%= form.hidden_field :set_onboarding_goals_at, value: Time.current %>
|
||||
|
||||
<% if self_hosted? %>
|
||||
<%= form.hidden_field :onboarded_at, value: Time.current %>
|
||||
<% end %>
|
||||
|
||||
<div class="space-y-3">
|
||||
<% [
|
||||
{ icon: "layers", label: "See all my accounts in one piece", value: "unified_accounts" },
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<%= content_for :previous_path, onboarding_path %>
|
||||
<%= content_for :prev_nav do %>
|
||||
<%= image_tag "logomark-color.svg", class: "w-10 h-10" %>
|
||||
<% end %>
|
||||
|
||||
<%= content_for :header_nav do %>
|
||||
<%= render "onboardings/onboarding_nav", user: @user %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue