From a7388bf90f91c51de8efea3708ccd5cbf4066940 Mon Sep 17 00:00:00 2001 From: rikinsk Date: Wed, 22 Jul 2020 01:56:00 +0530 Subject: [PATCH 1/6] fix spacing on Schema page for relationships Track all button --- console/src/components/Services/Data/Schema/Schema.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/console/src/components/Services/Data/Schema/Schema.js b/console/src/components/Services/Data/Schema/Schema.js index 38fd262f42fd4..a309ace261f9f 100644 --- a/console/src/components/Services/Data/Schema/Schema.js +++ b/console/src/components/Services/Data/Schema/Schema.js @@ -536,8 +536,7 @@ class Schema extends Component { 'Relationships inferred via foreign-keys that are not exposed over the GraphQL API', <> -   - {getTrackAllBtn()} + {getTrackAllBtn()} ); From 253c5101530222492c70e8821da0cd4423196dcd Mon Sep 17 00:00:00 2001 From: rikinsk Date: Wed, 22 Jul 2020 01:57:14 +0530 Subject: [PATCH 2/6] update triggers sidebar icons --- .../Layout/LeftSubSidebar/LeftSidebarSection.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/console/src/components/Common/Layout/LeftSubSidebar/LeftSidebarSection.tsx b/console/src/components/Common/Layout/LeftSubSidebar/LeftSidebarSection.tsx index a108f6f5fe64a..74c579d83b89c 100644 --- a/console/src/components/Common/Layout/LeftSubSidebar/LeftSidebarSection.tsx +++ b/console/src/components/Common/Layout/LeftSubSidebar/LeftSidebarSection.tsx @@ -53,6 +53,17 @@ const LeftSidebarSection = ({ itemList = [...items]; } + const getServiceIcon = () => { + switch (service) { + case 'cron': + return 'fa-calendar'; + case 'data': + return 'fa-database'; + default: + return 'fa-wrench'; + } + }; + const getChildList = () => { let childList; if (itemList.length === 0) { @@ -62,6 +73,8 @@ const LeftSidebarSection = ({ ); } else { + const serviceIcon = getServiceIcon(); + childList = itemList.map(a => { let activeTableClass = ''; if (currentItem && currentItem.name === a.name) { @@ -76,7 +89,7 @@ const LeftSidebarSection = ({ >