chore: Update the integration icons, logic for enabled/active attributes for the integration (#9828)
This PR would update the logos for the integrations (also add the dark mode variants to be used in the future) and updates the logic for enabled / active attributes in the apps.
This commit is contained in:
@@ -38,6 +38,8 @@ class Integrations::App
|
||||
case params[:id]
|
||||
when 'slack'
|
||||
ENV['SLACK_CLIENT_SECRET'].present?
|
||||
when 'linear'
|
||||
Current.account.feature_enabled?('linear_integration')
|
||||
else
|
||||
true
|
||||
end
|
||||
@@ -45,10 +47,10 @@ class Integrations::App
|
||||
|
||||
def enabled?(account)
|
||||
case params[:id]
|
||||
when 'slack'
|
||||
account.hooks.exists?(app_id: id)
|
||||
when 'webhook'
|
||||
account.webhooks.exists?
|
||||
else
|
||||
true
|
||||
account.hooks.exists?(app_id: id)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user