diff --git a/lib/mindwendel_web/components/core_components.ex b/lib/mindwendel_web/components/core_components.ex
index 06f354d8..3980b022 100644
--- a/lib/mindwendel_web/components/core_components.ex
+++ b/lib/mindwendel_web/components/core_components.ex
@@ -38,6 +38,7 @@ defmodule MindwendelWeb.CoreComponents do
"""
attr :id, :string, required: true
attr :title, :string, required: false
+ attr :phx_update, :string, default: "replace"
attr :show, :boolean, default: false
attr :on_cancel, JS, default: %JS{}
slot :inner_block, required: true
@@ -53,6 +54,7 @@ defmodule MindwendelWeb.CoreComponents do
tabindex="-1"
aria-hidden="true"
aria-labelledby="{@id}-title"
+ phx-update={@phx_update}
>
diff --git a/lib/mindwendel_web/live/brainstorming_live/show.html.heex b/lib/mindwendel_web/live/brainstorming_live/show.html.heex
index 87112ed8..52f53bae 100644
--- a/lib/mindwendel_web/live/brainstorming_live/show.html.heex
+++ b/lib/mindwendel_web/live/brainstorming_live/show.html.heex
@@ -90,12 +90,14 @@
show
on_cancel={JS.patch(~p"/brainstormings/#{@brainstorming.id}")}
title={gettext("New idea")}
+ phx_update="ignore"
>
<.live_component
module={MindwendelWeb.IdeaLive.FormComponent}
id={:new}
action={:new}
brainstorming={@brainstorming}
+ filtered_labels={@filtered_labels}
current_user={@current_user}
idea={@idea}
/>
diff --git a/lib/mindwendel_web/live/idea_live/form_component.ex b/lib/mindwendel_web/live/idea_live/form_component.ex
index 4e1d92fc..6aec00b7 100644
--- a/lib/mindwendel_web/live/idea_live/form_component.ex
+++ b/lib/mindwendel_web/live/idea_live/form_component.ex
@@ -94,7 +94,7 @@ defmodule MindwendelWeb.IdeaLive.FormComponent do
|> Map.put("user_id", socket.assigns.current_user.id)
|> Map.put(
"idea_labels",
- IdeaLabels.get_idea_labels(socket.assigns.brainstorming.filter_labels_ids)
+ IdeaLabels.get_idea_labels(socket.assigns.filtered_labels)
)
|> Map.put("tmp_attachments", tmp_attachments)
diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po
index 47e8696e..21e65e48 100644
--- a/priv/gettext/de/LC_MESSAGES/default.po
+++ b/priv/gettext/de/LC_MESSAGES/default.po
@@ -258,7 +258,7 @@ msgstr "Mindwendel Brainstorming"
msgid "Share"
msgstr "Teilen"
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:176
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:178
#, elixir-autogen, elixir-format
msgid "Share brainstorming"
msgstr "Teile Dein Brainstorming"
@@ -278,7 +278,7 @@ msgstr "Download als SVG"
msgid "Brainstorming delete are you sure"
msgstr "Bist du sicher, dass das Brainstorming gelöscht werden soll?"
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:143
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:145
#, elixir-autogen, elixir-format
msgid "Update idea"
msgstr "Idee bearbeiten"
@@ -319,43 +319,43 @@ msgstr "Nutzern das Verschieben und Sortieren von Ideen erlauben"
msgid "Back"
msgstr "Zurück"
-#: lib/mindwendel_web/components/core_components.ex:528
+#: lib/mindwendel_web/components/core_components.ex:530
#, elixir-autogen, elixir-format
msgid "Actions"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:156
+#: lib/mindwendel_web/components/core_components.ex:158
#, elixir-autogen, elixir-format
msgid "Attempting to reconnect"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:147
+#: lib/mindwendel_web/components/core_components.ex:149
#, elixir-autogen, elixir-format
msgid "Error!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:168
+#: lib/mindwendel_web/components/core_components.ex:170
#, elixir-autogen, elixir-format
msgid "Hang in there while we get back on track"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:163
+#: lib/mindwendel_web/components/core_components.ex:165
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:146
+#: lib/mindwendel_web/components/core_components.ex:148
#, elixir-autogen, elixir-format
msgid "Success!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:151
+#: lib/mindwendel_web/components/core_components.ex:153
#, elixir-autogen, elixir-format
msgid "We can't find the internet"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:71
-#: lib/mindwendel_web/components/core_components.ex:126
+#: lib/mindwendel_web/components/core_components.ex:73
+#: lib/mindwendel_web/components/core_components.ex:128
#, elixir-autogen, elixir-format, fuzzy
msgid "close"
msgstr "Schließen"
@@ -402,13 +402,13 @@ msgstr "Name"
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:37
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:39
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:126
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:128
#: lib/mindwendel_web/live/lane_live/index_component.html.heex:130
#, elixir-autogen, elixir-format
msgid "New lane"
msgstr "Neue Spalte"
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:160
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:162
#, elixir-autogen, elixir-format, fuzzy
msgid "Update lane"
msgstr "Spalte bearbeiten"
@@ -553,7 +553,7 @@ msgstr "Impressum"
msgid "Privacy"
msgstr "Datenschutzerklärung"
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:109
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "Idea details"
msgstr "Detailansicht"
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot
index 471a97d2..4bb7f3d2 100644
--- a/priv/gettext/default.pot
+++ b/priv/gettext/default.pot
@@ -257,7 +257,7 @@ msgstr ""
msgid "Share"
msgstr ""
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:176
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:178
#, elixir-autogen, elixir-format
msgid "Share brainstorming"
msgstr ""
@@ -277,7 +277,7 @@ msgstr ""
msgid "Brainstorming delete are you sure"
msgstr ""
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:143
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:145
#, elixir-autogen, elixir-format
msgid "Update idea"
msgstr ""
@@ -318,43 +318,43 @@ msgstr ""
msgid "Back"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:528
+#: lib/mindwendel_web/components/core_components.ex:530
#, elixir-autogen, elixir-format
msgid "Actions"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:156
+#: lib/mindwendel_web/components/core_components.ex:158
#, elixir-autogen, elixir-format
msgid "Attempting to reconnect"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:147
+#: lib/mindwendel_web/components/core_components.ex:149
#, elixir-autogen, elixir-format
msgid "Error!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:168
+#: lib/mindwendel_web/components/core_components.ex:170
#, elixir-autogen, elixir-format
msgid "Hang in there while we get back on track"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:163
+#: lib/mindwendel_web/components/core_components.ex:165
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:146
+#: lib/mindwendel_web/components/core_components.ex:148
#, elixir-autogen, elixir-format
msgid "Success!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:151
+#: lib/mindwendel_web/components/core_components.ex:153
#, elixir-autogen, elixir-format
msgid "We can't find the internet"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:71
-#: lib/mindwendel_web/components/core_components.ex:126
+#: lib/mindwendel_web/components/core_components.ex:73
+#: lib/mindwendel_web/components/core_components.ex:128
#, elixir-autogen, elixir-format
msgid "close"
msgstr ""
@@ -401,13 +401,13 @@ msgstr ""
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:37
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:39
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:126
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:128
#: lib/mindwendel_web/live/lane_live/index_component.html.heex:130
#, elixir-autogen, elixir-format
msgid "New lane"
msgstr ""
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:160
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:162
#, elixir-autogen, elixir-format
msgid "Update lane"
msgstr ""
@@ -552,7 +552,7 @@ msgstr ""
msgid "Privacy"
msgstr ""
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:109
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "Idea details"
msgstr ""
diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po
index a8286f97..0b95e7b6 100644
--- a/priv/gettext/en/LC_MESSAGES/default.po
+++ b/priv/gettext/en/LC_MESSAGES/default.po
@@ -258,7 +258,7 @@ msgstr "Mindwendel Brainstorming"
msgid "Share"
msgstr "Share"
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:176
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:178
#, elixir-autogen, elixir-format
msgid "Share brainstorming"
msgstr "Share brainstorming"
@@ -278,7 +278,7 @@ msgstr "Download as svg"
msgid "Brainstorming delete are you sure"
msgstr "Are you sure that you want to delete this brainstorming?"
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:143
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:145
#, elixir-autogen, elixir-format
msgid "Update idea"
msgstr ""
@@ -319,43 +319,43 @@ msgstr "Allow users to change the order of ideas"
msgid "Back"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:528
+#: lib/mindwendel_web/components/core_components.ex:530
#, elixir-autogen, elixir-format
msgid "Actions"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:156
+#: lib/mindwendel_web/components/core_components.ex:158
#, elixir-autogen, elixir-format
msgid "Attempting to reconnect"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:147
+#: lib/mindwendel_web/components/core_components.ex:149
#, elixir-autogen, elixir-format
msgid "Error!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:168
+#: lib/mindwendel_web/components/core_components.ex:170
#, elixir-autogen, elixir-format
msgid "Hang in there while we get back on track"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:163
+#: lib/mindwendel_web/components/core_components.ex:165
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:146
+#: lib/mindwendel_web/components/core_components.ex:148
#, elixir-autogen, elixir-format
msgid "Success!"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:151
+#: lib/mindwendel_web/components/core_components.ex:153
#, elixir-autogen, elixir-format
msgid "We can't find the internet"
msgstr ""
-#: lib/mindwendel_web/components/core_components.ex:71
-#: lib/mindwendel_web/components/core_components.ex:126
+#: lib/mindwendel_web/components/core_components.ex:73
+#: lib/mindwendel_web/components/core_components.ex:128
#, elixir-autogen, elixir-format, fuzzy
msgid "close"
msgstr ""
@@ -402,13 +402,13 @@ msgstr ""
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:37
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:39
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:126
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:128
#: lib/mindwendel_web/live/lane_live/index_component.html.heex:130
#, elixir-autogen, elixir-format
msgid "New lane"
msgstr ""
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:160
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:162
#, elixir-autogen, elixir-format, fuzzy
msgid "Update lane"
msgstr ""
@@ -553,7 +553,7 @@ msgstr ""
msgid "Privacy"
msgstr ""
-#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:109
+#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "Idea details"
msgstr ""