five-two-nw-olivander 0.1.2.33 → 0.1.2.35

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: e7e8369317833a43657c260cc70760456db6b3cfe00fd07dfb0025cb60d6d97c
4
- data.tar.gz: b3c5c50ec6df2e061e91f366b1bf3ac799189eb6da9b35cd2dc6ecff8985d58f
3
+ metadata.gz: 21de4f9aa55c8f41410166a668b724d89d0f7800adef266b6c6ded9b3d52a665
4
+ data.tar.gz: d4de2dfa99389c5df48c39cd8854f9ea3cb0a855f0ea11dfdb1e0cf5f9991e7d
5
5
  SHA512:
6
- metadata.gz: 724bf34bce912308d9c9c7567af14704e08a19393d4724325e5af7db4990ce63bbbc97f399fad5dca0f18b8ad1ec6590f8106b5612994784d1206f2cef996e4f
7
- data.tar.gz: 82a7fc7c07cc0edf46ea06cb6c85c93fa0fced741b9ebdf8572d3ff21838b1403ea206fde329417a1de2803dbc269e86055c87c4ac8eb71fe45afa20bf1b1fff
6
+ metadata.gz: c9e38f0a1c8fd0802f26b47fa0d889e354f57baa56bfb62cd1b07b29e670112410dd23eb1b55765ecaedfbe15a50a5b1927ee67ca40826c6b57773a7d28bdf3f
7
+ data.tar.gz: 90e0d42e5a80bfc5a2dac29ac6f26e8091dc697daa3868646422b343ee5dee495455933960504e77b777e12d20ff298a2fb4cba8c6f7870a16f25b96f752eb08
@@ -34,7 +34,9 @@ module Olivander
34
34
  arr << a if a.sym == p
35
35
  end
36
36
  end
37
- arr &&= actions.reject{ |x| preferred.include?(x.sym) }
37
+ actions.reject{ |x| preferred.include?(x.sym) }.each do |a|
38
+ arr << a
39
+ end
38
40
  end
39
41
  end
40
42
 
@@ -1,7 +1,15 @@
1
- - actions.each do |a|
2
- = link_to({ controller: a.controller, action: a.action }, method: a.verb, class: 'btn btn-tool', data: { turbo: true }) do
1
+ - actions.each_with_index do |a, idx|
2
+ - cf_sym = "link_inner#{idx}".to_sym
3
+ = content_for cf_sym do
3
4
  - icon_key = "activerecord.actions.icons.#{a.sym}"
4
5
  - if I18n.exists?(icon_key)
5
6
  %i.fa{ class: I18n.t(icon_key)}
6
7
  = resource_form_action_label(@resource, a.sym)
8
+
9
+ - if a.turbo_frame.blank?
10
+ = link_to({ controller: a.controller, action: a.action }, method: a.verb, class: 'btn btn-tool') do
11
+ = yield cf_sym
12
+ - else
13
+ = link_to({ controller: a.controller, action: a.action }, class: 'btn btn-tool', data: { turbo: true, turbo_method: a.verb, turbo_frame: a.turbo_frame }) do
14
+ = yield cf_sym
7
15
  &nbsp;
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = '0.1.2.33'.freeze
2
+ VERSION = '0.1.2.35'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.33
4
+ version: 0.1.2.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick