satis 2.1.1 → 2.1.3
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: 3100905fd0c0f9ab69fa8b367eb09bc2bd6f7b4c3a3dd1271517141417c9c667
|
4
|
+
data.tar.gz: fc168ce7e22bc01baebec87fb632dca6acdfeebdbcc623f852119be34393b7b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d085a09e1de0e2ced5dd4d539d2aeb66510e4e6a4ba0857cd37081b6ad3e1734b80db6b388b4e3b07e5aa255c1496cce374c041f38ea02bc8ffa350bf93dc545
|
7
|
+
data.tar.gz: ab57757fd34af527fed33856165bfb0d2cbe1487f43d16252f20373744ce8fb086209f995ed0814ca07e868075ba50dfbafecb3063f25ad584b352e7c2804607
|
@@ -26,7 +26,9 @@ export default class SidebarMenuItemComponentController extends ApplicationContr
|
|
26
26
|
|
27
27
|
if (this.hasSubmenuTarget) {
|
28
28
|
this.submenuTarget.classList.remove("hidden")
|
29
|
-
this.indicatorTarget.
|
29
|
+
if(!this.submenuTarget.classList.contains("hidden") && !this.indicatorTarget.hasAttribute("data-fa-transform")){
|
30
|
+
this.indicatorTarget.setAttribute("data-fa-transform", "rotate-90")
|
31
|
+
}
|
30
32
|
if (this.linkTarget){
|
31
33
|
this.linkTarget.classList.add("focus")
|
32
34
|
}
|
@@ -44,6 +46,20 @@ export default class SidebarMenuItemComponentController extends ApplicationContr
|
|
44
46
|
}
|
45
47
|
event.preventDefault()
|
46
48
|
}
|
49
|
+
else {
|
50
|
+
if(this.linkInUrl || (this.linkTarget.href.length <= 0 && !this.hasActiveLinks)){
|
51
|
+
if (this.hasSubmenuTarget){
|
52
|
+
this.submenuTarget.classList.toggle("hidden")
|
53
|
+
if(!this.submenuTarget.classList.contains("hidden") && !this.indicatorTarget.hasAttribute("data-fa-transform")){
|
54
|
+
this.indicatorTarget.setAttribute("data-fa-transform", "rotate-90")
|
55
|
+
} else{
|
56
|
+
this.indicatorTarget.removeAttribute("data-fa-transform", "rotate-90")
|
57
|
+
}
|
58
|
+
event.preventDefault()
|
59
|
+
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
47
63
|
}
|
48
64
|
|
49
65
|
get linkInUrl() {
|
data/lib/satis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: satis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: browser
|