Skip to content

Commit 4fc4d60

Browse files
authored
Merge pull request #3439 from manyfold3d/add-count-to-label
Add total model count to update all button
2 parents 5b1b561 + 505a3ab commit 4fc4d60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/models/bulk_edit.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<%= form.hidden_field :library, value: @filters[:library] if @filters[:library] %>
5959
<%= form.hidden_field :creator, value: @filters[:creator] if @filters[:creator] %>
6060
<%= form.submit translate(".submit"), class: "btn btn-primary" %>
61-
<%= form.submit translate(".update_all"), class: "btn btn-secondary" %>
61+
<%= form.submit translate(".update_all", count: @models.total_count), class: "btn btn-secondary" %>
6262

6363
</div>
6464
<% if !@filters.empty? %>

config/locales/models/en.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ en:
1010
select_all: Select all models
1111
submit: Update Selected Models
1212
title: Bulk Edit Models
13-
update_all: Update All Models
13+
update_all: Update All %{count} Models
1414
bulk_fields:
1515
add_tags: Add tags
1616
bulk_update:

0 commit comments

Comments
 (0)