satis 1.0.74 → 1.0.75
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: e8bb27aace7817e26b12e3dc2d45f998cc8115681e7ae457988bdf417da6a237
|
4
|
+
data.tar.gz: 444726850e8e2d89b7cd4dc36eee15be4f92a49b24af5128a7b2e86996790309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5395dd96507833c0f3100f1851d3d75375d45fab2c2fb3d37cbc1d40f26f177b25db14dc376a98b60a85d1533cc58b46ea72def4f3e27e2bea77233c3d1b259b
|
7
|
+
data.tar.gz: 6c4116e85019189aad9f18ddc3bb61e04122328217b80bbeccf688ad3fe3886b66047633af3c4e741d6574f6059316fe79a1f1c117187933ee353035479a46a1
|
@@ -39,7 +39,7 @@
|
|
39
39
|
a
|
40
40
|
- if tab.icon
|
41
41
|
i.mr-2 class=tab.icon
|
42
|
-
span id="tab_label_#{tab.id}"
|
42
|
+
span id="tab_label_#{tab.id}" class="#{tab.dirty? ? 'italic' : ''}"
|
43
43
|
= t(tab.name, scope: [:tabs], default: tab.title || tab.name)
|
44
44
|
i.fal.fa-triangle-exclamation.ml-2.hidden
|
45
45
|
- if tab.badge
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Satis
|
4
4
|
module Tab
|
5
5
|
class Component < Satis::ApplicationComponent
|
6
|
-
attr_reader :options, :name, :icon, :badge, :id, :tab_menu, :selected_tab_index
|
6
|
+
attr_reader :options, :name, :icon, :badge, :id, :tab_menu, :selected_tab_index, :dirty
|
7
7
|
|
8
8
|
def initialize(name, *args, &block)
|
9
9
|
super
|
@@ -16,6 +16,7 @@ module Satis
|
|
16
16
|
@tab_menu = options[:tab_menu]
|
17
17
|
@block = block
|
18
18
|
@selected_tab_index = options[:selected_tab_index]
|
19
|
+
@dirty = options[:dirty]
|
19
20
|
end
|
20
21
|
|
21
22
|
def responsive?
|
@@ -26,6 +27,10 @@ module Satis
|
|
26
27
|
options[:selected] == true
|
27
28
|
end
|
28
29
|
|
30
|
+
def dirty?
|
31
|
+
options[:dirty] == true
|
32
|
+
end
|
33
|
+
|
29
34
|
def title
|
30
35
|
options[:title]
|
31
36
|
end
|
data/lib/satis/version.rb
CHANGED