fluxbit_view_components 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60a235092c19fce1b3548ee037d23e4698e106230bcffc2c64e38eea922c3fe2
|
|
4
|
+
data.tar.gz: 61ffaeca393020f18b18a6b1956bf568c5bcc99379f4b53c778da4512fe48b82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '046998a7d114dc3e3734079b51a509665ae36c1ec585891d832c514f8bfca125d1ea991dce89f49b9758872c97a0c4ce9ca5738d6e49457401f2e2a37626e6e2'
|
|
7
|
+
data.tar.gz: 78d051dc5b7b9dd7ef26bcdaf5f26d6c3a1e8c6352dc1fe70dd19f3bfb46e933378e9fff5e79411aae94e85218526c3318ab66b0b88382a1e3f3026d548115e3
|
|
@@ -14,7 +14,7 @@ class Fluxbit::PaginationComponent < Fluxbit::Component
|
|
|
14
14
|
@last = @props.delete(:last) || 1
|
|
15
15
|
@next = @props.delete(:next)
|
|
16
16
|
@page = @props.delete(:page) || 1
|
|
17
|
-
@
|
|
17
|
+
@previous = @props.delete(:previous)
|
|
18
18
|
@size = @props.delete(:size) || :default
|
|
19
19
|
@ends = @props.delete(:ends) || true
|
|
20
20
|
@request_path = @props.delete(:request_path) || nil
|
|
@@ -24,7 +24,7 @@ class Fluxbit::PaginationComponent < Fluxbit::Component
|
|
|
24
24
|
@last = @pagy.last
|
|
25
25
|
@next = @pagy.next
|
|
26
26
|
@page = @pagy.page
|
|
27
|
-
@
|
|
27
|
+
@previous = @pagy.previous
|
|
28
28
|
@size = @pagy.vars[:size]
|
|
29
29
|
@ends = @pagy.vars[:ends]
|
|
30
30
|
@request_path = @pagy.vars[:request_path]
|
|
@@ -119,7 +119,7 @@ class Fluxbit::PaginationComponent < Fluxbit::Component
|
|
|
119
119
|
|
|
120
120
|
def prev_button
|
|
121
121
|
props = { role: "link", class: @page_link_style, aria: { label: translate("aria_label.prev") } }
|
|
122
|
-
if prev_page = @
|
|
122
|
+
if prev_page = @previous
|
|
123
123
|
props[:href] = url_for(prev_page)
|
|
124
124
|
else
|
|
125
125
|
props[:aria][:disabled] = true
|