From 94aaa168cd9c785b92e89256d1c7a46edecfe3be Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Wed, 5 Oct 2022 15:36:44 +0200 Subject: [PATCH] Added disabled state with CTA for Zapier integration refs https://github.com/TryGhost/Team/issues/1157 --- ghost/admin/app/styles/layouts/apps.css | 16 +++++++++++++ .../app/templates/settings/integrations.hbs | 23 +++++++++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/ghost/admin/app/styles/layouts/apps.css b/ghost/admin/app/styles/layouts/apps.css index 95dd1ddeb5..71eec4adb7 100644 --- a/ghost/admin/app/styles/layouts/apps.css +++ b/ghost/admin/app/styles/layouts/apps.css @@ -256,15 +256,31 @@ opacity: 0.4; } +.apps-card-app-disabled .apps-card-app-title-container { + display: flex; +} + +.apps-card-app-disabled .apps-card-app-icon { + filter:grayscale(1); + opacity:0.3; +} + .apps-card-app-disabled .apps-card-meta svg { margin-left: 4px; width: 14px; + opacity: 0.9; } .apps-card-app-disabled .apps-card-meta path { fill: #292d33; } +.apps-card-app-disabled .apps-card-app-disabled-cta { + color: #30cf43; + margin-right: 28px; + font-weight: 600; +} + .apps-card-app-title { margin: 0; overflow: hidden; diff --git a/ghost/admin/app/templates/settings/integrations.hbs b/ghost/admin/app/templates/settings/integrations.hbs index aa5339117f..fd94a20f32 100644 --- a/ghost/admin/app/templates/settings/integrations.hbs +++ b/ghost/admin/app/templates/settings/integrations.hbs @@ -69,7 +69,26 @@

Built-in integrations

- {{#unless this.zapierDisabled}} + {{#if this.zapierDisabled}} +
+ +
+
+
+
+

Zapier

{{svg-jar "lock-filled"}}
+

Automation for your favorite apps

+
+
+
+
+ +
+
+
+
+
+ {{else}}
@@ -89,7 +108,7 @@
- {{/unless}} + {{/if}}