active_admin_scoped_collection_actions 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +3 -3
- data/Gemfile +10 -9
- data/config/locales/de.yml +11 -0
- data/config/locales/sv.yml +0 -1
- data/lib/active_admin_scoped_collection_actions/dsl.rb +1 -1
- data/lib/active_admin_scoped_collection_actions/version.rb +1 -1
- data/vendor/assets/javascripts/lib/dialog_mass_fields_update.js +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ec0b8a54cfc86f4cfaf125753d4a3fc03b88dc0872c7557328ee0ce2cc680bb
|
4
|
+
data.tar.gz: 5b78d53eaa5d4de521e9d25cebb780dd66bc8ec0192a0e6ea9aea198ada6e286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1c4741c98d6af9724614a6f6a74d855b830f997c6c9e846be7a463394df081eceebb09b8906cd7e7807adafec54d79c754dfbb9c585554fcae2526f20230db
|
7
|
+
data.tar.gz: 565af320584442fddd6047b28c6e9389a5a41e7b52e70f5625f9f75646be5310fe1a67cb5bd68354fc343ae57f4438663a34268db3e293ca6bade7687b6b466b
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -3,17 +3,18 @@ source 'https://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :test do
|
6
|
-
gem '
|
7
|
-
gem '
|
6
|
+
gem 'rails', "~> #{ENV['RAILS'] || '6.0.0'}"
|
7
|
+
gem 'activeadmin', "~> #{ENV['AA'] || '2.6.0'}"
|
8
8
|
|
9
|
-
gem '
|
10
|
-
gem '
|
9
|
+
gem 'sprockets-rails', '3.0.4'
|
10
|
+
gem 'rspec-rails'
|
11
11
|
gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
|
12
|
+
gem 'sass-rails'
|
13
|
+
gem 'sqlite3', '~> 1.4.0'
|
14
|
+
gem 'launchy'
|
12
15
|
gem 'database_cleaner'
|
16
|
+
gem 'capybara'
|
17
|
+
gem 'webdrivers'
|
18
|
+
gem 'byebug'
|
13
19
|
gem 'draper'
|
14
|
-
gem 'launchy'
|
15
|
-
gem 'rspec-rails'
|
16
|
-
gem 'sass-rails'
|
17
|
-
gem 'selenium-webdriver'
|
18
|
-
gem 'sqlite3', '~> 1.3.6'
|
19
20
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
de:
|
2
|
+
active_admin_scoped_collection_actions:
|
3
|
+
sidebar_msg: 'Diese Aktion betrifft alle ausgewählten Datensätze. Wenn keine ausgewählt sind, betrifft sie alle gefilterten Datensätze.'
|
4
|
+
confirm_action_message: 'Sind Sie sicher?'
|
5
|
+
actions:
|
6
|
+
delete: 'Löschen'
|
7
|
+
update: 'Aktualisieren'
|
8
|
+
no_permissions_msg: 'Zugriff verweigert'
|
9
|
+
batch_update_status_msg: 'Aktualisiert'
|
10
|
+
batch_destroy_status_msg: 'Gelöscht'
|
11
|
+
fail_on_destroy_msg: 'Kann nicht gelöscht werden'
|
data/config/locales/sv.yml
CHANGED
@@ -3,7 +3,6 @@ sv:
|
|
3
3
|
sidebar_msg: 'Den här bulkoperationen påverkar markerade poster. Eller om inget är markerat så kommer det påverka alla poster i nuvarande filter och scope.'
|
4
4
|
confirm_action_message: 'Är du säker?'
|
5
5
|
actions:
|
6
|
-
delete: 'Ta bort batch'
|
7
6
|
delete: 'Ta bort batch'
|
8
7
|
update: 'Uppdatera batch'
|
9
8
|
no_permissions_msg: 'Tillträde beviljas ej'
|
@@ -56,7 +56,7 @@ module ActiveAdminScopedCollectionActions
|
|
56
56
|
errors = []
|
57
57
|
scoped_collection_records.find_each do |record|
|
58
58
|
unless destroy_resource(record)
|
59
|
-
errors << "#{record.attributes[resource_class.primary_key]} | #{I18n.t('active_admin_scoped_collection_actions.fail_on_destroy_msg')}
|
59
|
+
errors << "#{record.attributes[resource_class.primary_key]} | #{I18n.t('active_admin_scoped_collection_actions.fail_on_destroy_msg')}"
|
60
60
|
end
|
61
61
|
end
|
62
62
|
if errors.empty?
|
@@ -1,5 +1,5 @@
|
|
1
1
|
ActiveAdmin.dialogMassFieldsUpdate = function(message, inputs, callback){
|
2
|
-
let html = `<form id="dialog_confirm" title="${message}"><div
|
2
|
+
let html = `<form id="dialog_confirm" title="${message}"><div style="padding-right:4px;padding-left:1px;margin-right:2px"><ul>`;
|
3
3
|
for (let name in inputs) {
|
4
4
|
var elem, opts, wrapper;
|
5
5
|
let type = inputs[name];
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_scoped_collection_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gena M.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- README.md
|
48
48
|
- Rakefile
|
49
49
|
- active_admin_scoped_collection_actions.gemspec
|
50
|
+
- config/locales/de.yml
|
50
51
|
- config/locales/en.yml
|
51
52
|
- config/locales/es.yml
|
52
53
|
- config/locales/sv.yml
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
- !ruby/object:Gem::Version
|
83
84
|
version: '0'
|
84
85
|
requirements: []
|
85
|
-
rubygems_version: 3.0.
|
86
|
+
rubygems_version: 3.0.3
|
86
87
|
signing_key:
|
87
88
|
specification_version: 4
|
88
89
|
summary: scoped_collection actions extension for ActiveAdmin
|