Skip to content

Commit 685078a

Browse files
committed
add missing forms
1 parent f5077d5 commit 685078a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/algora_web/live/org/preview_nav.ex

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ defmodule AlgoraWeb.Org.PreviewNav do
77

88
alias Algora.Accounts
99
alias Algora.Organizations
10+
alias AlgoraWeb.Forms.BountyForm
11+
alias AlgoraWeb.Forms.ContractForm
1012

1113
require Logger
1214

@@ -18,7 +20,10 @@ defmodule AlgoraWeb.Org.PreviewNav do
1820

1921
{:cont,
2022
socket
21-
|> assign(:new_bounty_form, to_form(%{"github_issue_url" => "", "amount" => ""}))
23+
|> assign(:main_bounty_form, to_form(BountyForm.changeset(%BountyForm{}, %{})))
24+
|> assign(:main_bounty_form_open?, false)
25+
|> assign(:main_contract_form, to_form(ContractForm.changeset(%ContractForm{}, %{})))
26+
|> assign(:main_contract_form_open?, false)
2227
|> assign(:current_org, org)
2328
|> assign(:current_user, user)
2429
|> assign(:current_context, org)
@@ -39,7 +44,10 @@ defmodule AlgoraWeb.Org.PreviewNav do
3944

4045
socket =
4146
socket
42-
|> assign(:new_bounty_form, to_form(%{"github_issue_url" => "", "amount" => ""}))
47+
|> assign(:main_bounty_form, to_form(BountyForm.changeset(%BountyForm{}, %{})))
48+
|> assign(:main_bounty_form_open?, false)
49+
|> assign(:main_contract_form, to_form(ContractForm.changeset(%ContractForm{}, %{})))
50+
|> assign(:main_contract_form_open?, false)
4351
|> assign(:current_org, current_context)
4452
|> assign(:current_user_role, :admin)
4553
|> assign(:nav, nav_items(repo_owner, repo_name))

0 commit comments

Comments
 (0)