katalyst-koi 4.0.0 → 4.0.2
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: a09ac9a0541690754a61fe5569b874b25ac04f03ccdc4859f41a01a12c1074dd
|
4
|
+
data.tar.gz: e9c6fa787b600e59d1bf0733f9cfaca07a99712c0058cf6ce0e3ff40c64f2092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 121c60a7b2a8f4a13043683ea32d7baf1712819e5c5f3bbe76f048e7a69ba0881cdd4d99b6318fc6808fa2bd629515cd5ce02211abd0381b2b5bde0a92e44fc0
|
7
|
+
data.tar.gz: ef00e14d8d70140ad95f236f0630858792e8f32d105baeeb83fea6d7e39c82aae5893af17706f37929590faff7caf9c4e5fe64f0b2fa2b88636d4e3d2bb92960
|
@@ -3,10 +3,10 @@
|
|
3
3
|
<%= form.govuk_text_field :title %>
|
4
4
|
<%= form.govuk_text_field :url %>
|
5
5
|
|
6
|
-
<%= form.govuk_select :http_method, Katalyst::Navigation::Button::HTTP_METHODS %>
|
7
|
-
|
8
6
|
<%= form.govuk_check_box_field :visible, small: true, label: { text: "Visible?" } %>
|
9
|
-
|
7
|
+
|
8
|
+
<%= form.govuk_select :http_method, Katalyst::Navigation::Button::HTTP_METHODS, label: { text: "HTTP Method" } %>
|
9
|
+
<%= form.govuk_select :target, Katalyst::Navigation::Button::TARGETS %>
|
10
10
|
|
11
11
|
<div class="actions">
|
12
12
|
<%= form.admin_save "Done" %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= form.govuk_text_field :url %>
|
5
5
|
|
6
6
|
<%= form.govuk_check_box_field :visible, small: true, label: { text: "Visible?" } %>
|
7
|
-
<%= form.govuk_select :target, Katalyst::Navigation::
|
7
|
+
<%= form.govuk_select :target, Katalyst::Navigation::Link::TARGETS %>
|
8
8
|
|
9
9
|
<div class="actions">
|
10
10
|
<%= form.admin_save "Done" %>
|
@@ -4,10 +4,6 @@
|
|
4
4
|
|
5
5
|
return unless Object.const_defined?("Flipper")
|
6
6
|
|
7
|
-
Flipper.register(:admins) do |
|
8
|
-
actor.
|
9
|
-
end
|
10
|
-
|
11
|
-
Flipper.register(:super_admins) do |actor, _context|
|
12
|
-
actor.respond_to?("role") && (actor.role.eql? "Super")
|
7
|
+
Flipper.register(:admins) do |flipper, _context|
|
8
|
+
flipper.actor.is_a?(Admin::User) && !flipper.actor.archived?
|
13
9
|
end
|
data/lib/koi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katalyst-koi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|