mirror of
https://github.com/we-promise/sure.git
synced 2026-06-04 10:19:03 +00:00
Lunchflow settings family (#363)
* Move provider config to family * remove global settings * Remove turbo auto submit * Fix flash location * Fix mssing syncer for lunchflow * Update schema.rb * FIX tests and encryption config * FIX make rabbit happy * FIX run migration in SQL * FIX turbo frame modal * Branding fixes * FIX rabbit * OCD with product names * More OCD * No other console.log|warn in codebase --------- Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
@@ -120,11 +120,14 @@ class Settings::ProvidersController < ApplicationController
|
||||
|
||||
# Prepares instance vars needed by the show view and partials
|
||||
def prepare_show_context
|
||||
# Load all provider configurations (exclude SimpleFin, which has its own unified panel below)
|
||||
# Load all provider configurations (exclude SimpleFin and Lunchflow, which have their own family-specific panels below)
|
||||
Provider::Factory.ensure_adapters_loaded
|
||||
@provider_configurations = Provider::ConfigurationRegistry.all.reject { |config| config.provider_key.to_s.casecmp("simplefin").zero? }
|
||||
@provider_configurations = Provider::ConfigurationRegistry.all.reject do |config|
|
||||
config.provider_key.to_s.casecmp("simplefin").zero? || config.provider_key.to_s.casecmp("lunchflow").zero?
|
||||
end
|
||||
|
||||
# Providers page only needs to know whether any SimpleFin connections exist
|
||||
# Providers page only needs to know whether any SimpleFin/Lunchflow connections exist
|
||||
@simplefin_items = Current.family.simplefin_items.ordered.select(:id)
|
||||
@lunchflow_items = Current.family.lunchflow_items.ordered.select(:id)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user