ML-174: add empty action to record set dropdown menu

Add RecordSets.empty_record_set/1 that bulk-deletes all items in a set via
a single DELETE query and returns the reloaded empty set. Add Empty button
with confirmation prompt to both index and show view dropdowns.
This commit is contained in:
Claudio Ortolina
2026-05-14 17:10:54 +01:00
parent a59dd22a18
commit f108e6f062
7 changed files with 127 additions and 14 deletions
+17
View File
@@ -2535,3 +2535,20 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "Release Group"
msgstr ""
#: lib/music_library_web/live/record_set_live/index.ex
#: lib/music_library_web/live/record_set_live/show.ex
#, elixir-autogen, elixir-format
msgid "Empty"
msgstr ""
#: lib/music_library_web/live/record_set_live/index.ex
#: lib/music_library_web/live/record_set_live/show.ex
#, elixir-autogen, elixir-format, fuzzy
msgid "Remove all records from this set?"
msgstr ""
#: lib/music_library_web/live/record_set_live/show.ex
#, elixir-autogen, elixir-format
msgid "Set emptied"
msgstr ""