Skip to content

Commit

Permalink
Merge pull request #6079 from avalonmediasystem/gear-icon-6039
Browse files Browse the repository at this point in the history
Switch machine-gen file icon on edit page
  • Loading branch information
Dananji authored Oct 15, 2024
2 parents 9f8ee30 + f0767a1 commit fa3c65b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/supplemental_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ $('.supplemental-file-form')
$row.find('.message-content').html('Successfully updated.');
// Show/hide icon based on the updated machine-generated form check
isMachineGen
? $row.find('.fa-laptop').removeClass('d-none')
: $row.find('.fa-laptop').addClass('d-none');
? $row.find('.fa-gears').removeClass('d-none')
: $row.find('.fa-gears').addClass('d-none');
$row.find('.icon-success').removeClass('d-none');
$row.find('.visible-inline').addClass('alert');
})
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/avalon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ h5.card-title {
.form-group {
margin-bottom: 0.2rem;
}
.fa-laptop {
.fa-gears {
display: none;
}
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion app/views/media_objects/_supplemental_files_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Unless required by applicable law or agreed to in writing, software distributed
</small>
<div class="btn-toolbar float-right">
<%# Update button %>
<i class="fa fa-laptop align-content-center<%= file.machine_generated? ? '' : ' d-none' %>" title="Machine generated file"></i>
<i class="fa fa-gears align-content-center<%= file.machine_generated? ? '' : ' d-none' %>" title="Machine generated file"></i>
<%= button_tag name: 'edit_label', class:'btn btn-outline btn-sm edit_label display-item', type: 'button' do %>
<i class="fa fa-edit" title="Edit"></i> <span class="sm-hidden">Edit</span>
<% end %>
Expand Down

0 comments on commit fa3c65b

Please sign in to comment.