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:
Pranav
2024-07-23 17:45:53 -07:00
committed by GitHub
parent fb99ba7b40
commit 39d20b197d
30 changed files with 229 additions and 252 deletions

View File

@@ -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