plutonium 0.15.14 → 0.15.15

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: d38a90c9921d24b8cd928a2fc6616014cf01da1e03c5c13aaa1a1c1768266762
4
- data.tar.gz: e388c25c5e38549ed50742fc1f6c0eab5f1f5af635dd91b457f9465b2cb794b5
3
+ metadata.gz: e8676e0f548521718da0bac2431920bcb46f64e6944fad2b9124b2f50699d353
4
+ data.tar.gz: a5bf74da80df99ee51988e6969733e96aee41f2716f39d7e304ee40419cac35c
5
5
  SHA512:
6
- metadata.gz: cf533e989495cc68b96d480e9d2c97f6589e101236cd7404390f796769bf257fd53973803e0b913d0b6aa9c2a01e227c14ae1542b429ed3370bf5eb06dcca685
7
- data.tar.gz: 9c23d9883568df6ef8f5c7f46fac6d26481fe8036745442bf5f9ee76b7042ac0cbda2ed2fe6cd1054ca9eee85d553f4939eff4f233d83098e57f2818e7361e27
6
+ metadata.gz: 2a2afba6ce12397d76f1ba3d79ac1403950eefc87a8f4a7931d7c1f538fc1a593a2bbdeab2b9cbddebe4076c5add09cb40e114e1b4db39b2b4c5cc5dfd3a0877
7
+ data.tar.gz: 574d45c1ceaf7c47101de842139a3764e4b4ec0ec8e5947419733e5805684b597ba5a230cfc485e7510e2599d2b0d64ab4293ee0e2debc98c9dfa574125c981e
@@ -9,12 +9,12 @@ module Plutonium
9
9
  def initialize(*, query_object:, page_size:, attributes: {}, **options, &)
10
10
  options[:as] = :q
11
11
  options[:method] = :get
12
- attributes.deep_merge!(
12
+ attributes = mix(attributes.deep_merge(
13
13
  id: :search_form,
14
14
  class!: "space-y-2 mb-4",
15
15
  controller: "form",
16
16
  data: {controller: "form", turbo_frame: nil}
17
- )
17
+ ))
18
18
  super(*, attributes:, **options, &)
19
19
 
20
20
  @query_object = query_object
@@ -97,6 +97,8 @@ module Plutonium
97
97
  end
98
98
 
99
99
  def render_filter_fields
100
+ return if query_object.filter_definitions.blank?
101
+
100
102
  div(class: "flex flex-wrap items-center gap-4") do
101
103
  span(class: "text-sm font-medium text-gray-900 dark:text-white") { "Filters:" }
102
104
  div(class: "flex flex-wrap items-center gap-4 mr-auto") do
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.15.14"
2
+ VERSION = "0.15.15"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.14
4
+ version: 0.15.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich