From cd9cc65e990c441e601e58f209a8900ea067cde2 Mon Sep 17 00:00:00 2001 From: Eric Leroy-Terquem Date: Tue, 17 Oct 2023 19:02:51 +0200 Subject: [PATCH] feat(routing): add a feature flag on multi line routing --- .../routing_rules_component/routing_rules_component.html.haml | 4 ++-- config/initializers/flipper.rb | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/components/conditions/routing_rules_component/routing_rules_component.html.haml b/app/components/conditions/routing_rules_component/routing_rules_component.html.haml index 9830d9864..6ea962d59 100644 --- a/app/components/conditions/routing_rules_component/routing_rules_component.html.haml +++ b/app/components/conditions/routing_rules_component/routing_rules_component.html.haml @@ -28,5 +28,5 @@ %td.operator= operator_tag(operator_name, targeted_champ, row_index) %td.value= right_operand_tag(targeted_champ, value, row_index) %td.delete-column= delete_condition_tag(row_index) - - .flex.justify-end.mt-2= add_condition_tag + - if @groupe_instructeur.procedure.feature_enabled?(:multi_line_routing) + .flex.justify-end.mt-2= add_condition_tag diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index f7cbd99dc..ae0436952 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -20,7 +20,8 @@ features = [ :groupe_instructeur_api_hack, :rerouting, :cojo_type_de_champ, - :sva + :sva, + :multi_line_routing ] def database_exists?