Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek committed Dec 19, 2024
1 parent fd435d1 commit d996916
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 36 deletions.
9 changes: 3 additions & 6 deletions lib/mindwendel_web/live/brainstorming_live/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,9 @@ defmodule MindwendelWeb.BrainstormingLive.Show do

def handle_info({:brainstorming_filter_updated, filtered_labels, lanes}, socket) do
{:noreply,
push_patch(
socket
|> assign(:filtered_labels, filtered_labels)
|> assign(:lanes, lanes),
to: "/brainstormings/#{socket.assigns.brainstorming.id}"
)}
socket
|> assign(:filtered_labels, filtered_labels)
|> assign(:lanes, lanes)}
end

def handle_info({:brainstorming_updated, brainstorming}, socket) do
Expand Down
20 changes: 10 additions & 10 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ msgstr "Wie können wir ..."
msgid "Ready?"
msgstr "Fertig?"

#: lib/mindwendel_web/live/brainstorming_live/show.ex:201
#: lib/mindwendel_web/live/brainstorming_live/show.ex:199
#, elixir-autogen, elixir-format
msgid "%{name} - Edit"
msgstr "%{name} - Editieren"

#: lib/mindwendel_web/live/brainstorming_live/show.ex:178
#: lib/mindwendel_web/live/brainstorming_live/show.ex:176
#, elixir-autogen, elixir-format
msgid "%{name} - New Idea"
msgstr "%{name} - Neue Idee"
Expand Down Expand Up @@ -107,7 +107,7 @@ msgstr "Idee erstellt"
msgid "New brainstorming"
msgstr "Neues Brainstorming"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:91
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:92
#, elixir-autogen, elixir-format
msgid "New idea"
msgstr "Neue Idee"
Expand Down Expand Up @@ -258,7 +258,7 @@ msgstr "Mindwendel Brainstorming"
msgid "Share"
msgstr "Teilen"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:175
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:176
#, elixir-autogen, elixir-format
msgid "Share brainstorming"
msgstr "Teile Dein Brainstorming"
Expand All @@ -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:142
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:143
#, elixir-autogen, elixir-format
msgid "Update idea"
msgstr "Idee bearbeiten"
Expand Down Expand Up @@ -385,7 +385,7 @@ msgstr "Löschen"
msgid "Type the label name"
msgstr "Gebe dem Label einen Namen"

#: lib/mindwendel_web/live/brainstorming_live/show.ex:188
#: lib/mindwendel_web/live/brainstorming_live/show.ex:186
#, elixir-autogen, elixir-format, fuzzy
msgid "%{name} - New Lane"
msgstr "%{name} - Neue Idee"
Expand All @@ -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:125
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:126
#: 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:159
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:160
#, elixir-autogen, elixir-format, fuzzy
msgid "Update lane"
msgstr "Spalte bearbeiten"
Expand Down Expand Up @@ -553,7 +553,7 @@ msgstr "Impressum"
msgid "Privacy"
msgstr "Datenschutzerklärung"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:108
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:109
#, elixir-autogen, elixir-format
msgid "Idea details"
msgstr "Detailansicht"
Expand All @@ -563,7 +563,7 @@ msgstr "Detailansicht"
msgid "Give moderating permissions"
msgstr "Änderungen erlauben"

#: lib/mindwendel_web/live/brainstorming_live/show.ex:49
#: lib/mindwendel_web/live/brainstorming_live/show.ex:50
#, elixir-autogen, elixir-format, fuzzy
msgid "Brainstorming not found"
msgstr "Brainstorming konnte nicht gefunden werden"
20 changes: 10 additions & 10 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ msgstr ""
msgid "Ready?"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:201
#: lib/mindwendel_web/live/brainstorming_live/show.ex:199
#, elixir-autogen, elixir-format
msgid "%{name} - Edit"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:178
#: lib/mindwendel_web/live/brainstorming_live/show.ex:176
#, elixir-autogen, elixir-format
msgid "%{name} - New Idea"
msgstr ""
Expand Down Expand Up @@ -106,7 +106,7 @@ msgstr ""
msgid "New brainstorming"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:91
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:92
#, elixir-autogen, elixir-format
msgid "New idea"
msgstr ""
Expand Down Expand Up @@ -257,7 +257,7 @@ msgstr ""
msgid "Share"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:175
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:176
#, elixir-autogen, elixir-format
msgid "Share brainstorming"
msgstr ""
Expand All @@ -277,7 +277,7 @@ msgstr ""
msgid "Brainstorming delete are you sure"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:142
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:143
#, elixir-autogen, elixir-format
msgid "Update idea"
msgstr ""
Expand Down Expand Up @@ -384,7 +384,7 @@ msgstr ""
msgid "Type the label name"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:188
#: lib/mindwendel_web/live/brainstorming_live/show.ex:186
#, elixir-autogen, elixir-format
msgid "%{name} - New Lane"
msgstr ""
Expand All @@ -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:125
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:126
#: 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:159
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:160
#, elixir-autogen, elixir-format
msgid "Update lane"
msgstr ""
Expand Down Expand Up @@ -552,7 +552,7 @@ msgstr ""
msgid "Privacy"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:108
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:109
#, elixir-autogen, elixir-format
msgid "Idea details"
msgstr ""
Expand All @@ -562,7 +562,7 @@ msgstr ""
msgid "Give moderating permissions"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:49
#: lib/mindwendel_web/live/brainstorming_live/show.ex:50
#, elixir-autogen, elixir-format
msgid "Brainstorming not found"
msgstr ""
20 changes: 10 additions & 10 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ msgstr ""
msgid "Ready?"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:201
#: lib/mindwendel_web/live/brainstorming_live/show.ex:199
#, elixir-autogen, elixir-format
msgid "%{name} - Edit"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:178
#: lib/mindwendel_web/live/brainstorming_live/show.ex:176
#, elixir-autogen, elixir-format
msgid "%{name} - New Idea"
msgstr ""
Expand Down Expand Up @@ -107,7 +107,7 @@ msgstr ""
msgid "New brainstorming"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:91
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:92
#, elixir-autogen, elixir-format
msgid "New idea"
msgstr ""
Expand Down Expand Up @@ -258,7 +258,7 @@ msgstr "Mindwendel Brainstorming"
msgid "Share"
msgstr "Share"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:175
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:176
#, elixir-autogen, elixir-format
msgid "Share brainstorming"
msgstr "Share brainstorming"
Expand All @@ -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:142
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:143
#, elixir-autogen, elixir-format
msgid "Update idea"
msgstr ""
Expand Down Expand Up @@ -385,7 +385,7 @@ msgstr ""
msgid "Type the label name"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:188
#: lib/mindwendel_web/live/brainstorming_live/show.ex:186
#, elixir-autogen, elixir-format, fuzzy
msgid "%{name} - New Lane"
msgstr ""
Expand All @@ -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:125
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:126
#: 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:159
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:160
#, elixir-autogen, elixir-format, fuzzy
msgid "Update lane"
msgstr ""
Expand Down Expand Up @@ -553,7 +553,7 @@ msgstr ""
msgid "Privacy"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:108
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:109
#, elixir-autogen, elixir-format
msgid "Idea details"
msgstr ""
Expand All @@ -563,7 +563,7 @@ msgstr ""
msgid "Give moderating permissions"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.ex:49
#: lib/mindwendel_web/live/brainstorming_live/show.ex:50
#, elixir-autogen, elixir-format, fuzzy
msgid "Brainstorming not found"
msgstr ""
1 change: 1 addition & 0 deletions test/mindwendel_web/live/label_live/captions_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ defmodule MindwendelWeb.LabelLive.CaptionsTest do
render_component(CaptionsComponent,
id: "captions",
brainstorming: preloaded_brainstorming,
filtered_labels: preloaded_brainstorming.filter_labels_ids,
current_user: preloaded_user
)

Expand Down

0 comments on commit d996916

Please sign in to comment.