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: eb92750823d697ffbb372d003c7bf5e602bae07313f4b562662272112d53f372
4
- data.tar.gz: 67eddc938748bfd2b814e1714a634342a11b18328da150ce32c8490123af3df1
3
+ metadata.gz: a09ac9a0541690754a61fe5569b874b25ac04f03ccdc4859f41a01a12c1074dd
4
+ data.tar.gz: e9c6fa787b600e59d1bf0733f9cfaca07a99712c0058cf6ce0e3ff40c64f2092
5
5
  SHA512:
6
- metadata.gz: 25ab7a95629902201b8e750f063f6a54d206187003fffb950a276f7b30533c81124f4700ba78528b75248dbd4b0982b0ef9328b78d90be31acdd4f131700cdb3
7
- data.tar.gz: 70c3b22497df49c4e48c270694f09bcf2556de3919ce050514e23d33c9d407a83e732e8fec23dc6acfb8e0fbf05a3656a068e23aaa21df5ed21c3b73b0b015fb
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
- <%= form.govuk_select :target, Katalyst::Navigation::Item::TARGETS %>
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::Item::TARGETS %>
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 |actor, _context|
8
- actor.respond_to?("role") && ((actor.role.eql? "Admin") || (actor.role.eql? "Super"))
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Koi
4
- VERSION = "4.0.0"
4
+ VERSION = "4.0.2"
5
5
  end
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.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-27 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails