Rework artist versions index view
- Added a changes column explicitly listing all of the changes -- This makes it more in line with the other version views now - Does a symmetric difference on the array fields to detect changes
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
module ArtistVersionsHelper
|
||||
def artist_versions_listing_type
|
||||
(params.dig(:search, :artist_id).present? && CurrentUser.is_member?) ? :revert : :standard
|
||||
end
|
||||
|
||||
def artist_version_other_names_diff(artist_version)
|
||||
new_names = artist_version.other_names
|
||||
old_names = artist_version.previous.try(:other_names)
|
||||
|
||||
Reference in New Issue
Block a user