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: 404e24e2a10700e57832e51ffbd731c002246a83be939f229d0aaee608ce8186
4
- data.tar.gz: e0857255329c7188f5bd9d0ac6dcb6e440c1fe71335a24d9dbcb194775eb3ef4
3
+ metadata.gz: e8bb27aace7817e26b12e3dc2d45f998cc8115681e7ae457988bdf417da6a237
4
+ data.tar.gz: 444726850e8e2d89b7cd4dc36eee15be4f92a49b24af5128a7b2e86996790309
5
5
  SHA512:
6
- metadata.gz: f83789748c40028061efeec2bb6f44ba60c5efe589b72d2901c5b96431fd9b42d5934ad5d454c7da8e996312df81e50faf6075246e027e2cece69cb35f66c968
7
- data.tar.gz: d8185f8522dec022da35450865ffd0675b7c768ce976e6d1bbd8b63b02bdd5a716f59f2442a4f73b5c72afb81187994e0c7018c39fd36d5a72f2f15c90e964d4
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
@@ -1,3 +1,3 @@
1
1
  module Satis
2
- VERSION = "1.0.74"
2
+ VERSION = "1.0.75"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.74
4
+ version: 1.0.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt