Skip to content

Commit

Permalink
ffprobe + track save
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 11, 2023
1 parent 07607ab commit a04fdb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/models/track_bulk_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def tracks_attributes_objects=(attributes)
end

def save
return false unless valid?
if !valid?
puts self.errors.full_messages
return false
end
tracks.each(&:save!)
true
rescue => e
Expand Down
4 changes: 2 additions & 2 deletions app/views/tracks/_share_form_track.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="mt-6 sm:mt-5 space-y-6 sm:space-y-5 flex justify-center">
<div class="overflow-hidden p-6 mb-0 leading-4 text-left bg-white dark:bg-black border border-solid border-zinc-300 text-zinc-900 dark:text-zinc-100 rounded-md">
<div class="overflow-hidden p-6 mb-0 leading-4 text-left bg-white border border-solid border-zinc-300 text-zinc-900 dark:text-zinc-100 rounded-md">
<div class="flex text-left">
<div class="mr-4 text-zinc-800">
<div
Expand Down Expand Up @@ -33,7 +33,7 @@
</div>
</div>
</div>
<div class="flex flex-col pl-4 w-56 font-thin bg-white border-l border-solid border-zinc-100 text-neutral-400">
<div class="flex flex-col pl-4 w-56 font-thin border-l border-solid border-zinc-100 text-neutral-400">
<div class="flex-1">
<h3 class="mx-0 mt-0 mb-1 font-sans text-sm font-normal">
<%= gettext("Share your new track") %>
Expand Down

0 comments on commit a04fdb9

Please sign in to comment.