effective_datatables 4.10.5 → 4.10.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8b4404aa7ed71091b5136e13f24348b67a2d591933b386a7f7a3d47c698cbd0
|
4
|
+
data.tar.gz: d0bfa93d8b63174ed043cd4cb4de596c49b51dccd75cb00d1e56a7d7753522a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 645fd35fd30ad091d3a11e159b670a3def7e7f08d20af6646025f7d961214b8a995599dc824142378b4e97fe7c79eae02aed9db54e7d1081266c66c8350ea373
|
7
|
+
data.tar.gz: d4aa64b1d27c777537df67803031c194a764af723afa99fb34111f9f5f7bda9205530db9a4ca030dffaae99675fc653a116b6cbb937f1547f107f10676f976d3
|
@@ -30,7 +30,7 @@ module EffectiveDatatablesPrivateHelper
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def datatable_new_resource_button(datatable, name, column)
|
33
|
-
return unless
|
33
|
+
return unless datatable.inline? && (column[:actions][:new] != false)
|
34
34
|
|
35
35
|
action = { action: :new, class: ['btn', column[:btn_class].presence].compact.join(' '), 'data-remote': true }
|
36
36
|
|
@@ -90,7 +90,7 @@ module Effective
|
|
90
90
|
)
|
91
91
|
end
|
92
92
|
|
93
|
-
def actions_col(btn_class: nil, col_class: nil,
|
93
|
+
def actions_col(btn_class: nil, col_class: nil, partial: nil, partial_as: nil, actions_partial: nil, responsive: 5000, visible: true, **actions, &format)
|
94
94
|
raise 'You can only have one actions column' if datatable.columns[:_actions].present?
|
95
95
|
|
96
96
|
datatable._columns[:_actions] = Effective::DatatableColumn.new(
|
@@ -102,7 +102,6 @@ module Effective
|
|
102
102
|
csv: false,
|
103
103
|
format: (format if block_given?),
|
104
104
|
index: nil,
|
105
|
-
inline: (inline.nil? ? datatable.inline? : inline),
|
106
105
|
label: false,
|
107
106
|
name: :actions,
|
108
107
|
partial: partial,
|
@@ -155,7 +155,7 @@ module Effective
|
|
155
155
|
def actions_col_actions(column)
|
156
156
|
resource_actions = (effective_resource&.resource_actions || fallback_effective_resource.fallback_resource_actions)
|
157
157
|
|
158
|
-
actions = if
|
158
|
+
actions = if inline?
|
159
159
|
resource_actions.transform_values { |opts| opts['data-remote'] = true; opts }
|
160
160
|
else
|
161
161
|
resource_actions.transform_values { |opts| opts['data-remote'] = true if opts['data-method']; opts }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_datatables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.10.
|
4
|
+
version: 4.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|