diff --git a/package-lock.json b/package-lock.json index c1a017803..985a8d599 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "graph-explorer-v2", - "version": "4.18.1", + "version": "5.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -13389,4 +13389,4 @@ "dev": true } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index fe66da6d1..984da1a2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "graph-explorer-v2", - "version": "4.18.1", + "version": "5.0.0", "private": true, "dependencies": { "@augloop/types-core": "file:packages/types-core-2.16.189.tgz", @@ -124,4 +124,4 @@ "reportFile": "test-report.xml", "indent": 4 } -} \ No newline at end of file +} diff --git a/src/app/views/query-runner/request/permissions/PanelList.tsx b/src/app/views/query-runner/request/permissions/PanelList.tsx index fb5454d6b..e1976880e 100644 --- a/src/app/views/query-runner/request/permissions/PanelList.tsx +++ b/src/app/views/query-runner/request/permissions/PanelList.tsx @@ -34,7 +34,7 @@ const PanelList = ({ messages, columns, classes, selection, renderItemColumn, renderDetailsHeader, renderCustomCheckbox }: IPanelList) => { - const sortPermissions = (permissionsToSort: IPermission[]) : IPermission[] => { + const sortPermissions = (permissionsToSort: IPermission[]): IPermission[] => { return permissionsToSort ? permissionsToSort.sort(dynamicSort('value', SortOrder.ASC)) : []; } diff --git a/src/app/views/query-runner/request/permissions/TabList.tsx b/src/app/views/query-runner/request/permissions/TabList.tsx index b8cdaa7dd..200cb7bc4 100644 --- a/src/app/views/query-runner/request/permissions/TabList.tsx +++ b/src/app/views/query-runner/request/permissions/TabList.tsx @@ -19,7 +19,7 @@ interface ITabList { const TabList = ({ columns, classes, renderItemColumn, renderDetailsHeader, maxHeight }: ITabList) => { const dispatch = useDispatch(); const { consentedScopes, scopes, authToken } = useSelector((state: IRootState) => state); - const permissions: IPermission[] = scopes.data.specificPermissions ? scopes.data.specificPermissions : []; + const permissions: IPermission[] = scopes.data.specificPermissions ? scopes.data.specificPermissions : []; const tokenPresent = !!authToken.token; const [isHoverOverPermissionsList, setIsHoverOverPermissionsList] = useState(false); diff --git a/src/app/views/sidebar/resource-explorer/ResourceLink.tsx b/src/app/views/sidebar/resource-explorer/ResourceLink.tsx index e6b2bd0d6..1f5ea7751 100644 --- a/src/app/views/sidebar/resource-explorer/ResourceLink.tsx +++ b/src/app/views/sidebar/resource-explorer/ResourceLink.tsx @@ -24,7 +24,7 @@ const ResourceLink = (props: IResourceLinkProps) => { const iconButtonStyles = { - root: { paddingBottom:10, marginTop: -5, marginRight: 2 }, + root: { paddingBottom: 10, marginTop: -5, marginRight: 2 }, menuIcon: { fontSize: 20, padding: 5 } }; @@ -39,12 +39,12 @@ const ResourceLink = (props: IResourceLinkProps) => { return {resourceLink.method && - - {resourceLink.method} - } + + {resourceLink.method} + } @@ -52,6 +52,7 @@ const ResourceLink = (props: IResourceLinkProps) => { + {items.length > 0 && { function getMenuItems() { const menuItems: IContextualMenuItem[] = []; - if (resourceLink) - { + if (resourceLink) { if (resourceLink.type === ResourceLinkType.NODE) { menuItems.push( { @@ -113,7 +113,7 @@ const ResourceLink = (props: IResourceLinkProps) => { const linkStyle = mergeStyleSets( { link: { display: 'flex', lineHeight: 'normal', width: '100%', overflow: 'hidden' }, - resourceLinkNameContainer: { textAlign: 'left', flex: '1', overflow:'hidden', display: 'flex' }, + resourceLinkNameContainer: { textAlign: 'left', flex: '1', overflow: 'hidden', display: 'flex' }, resourceLinkText: { textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' } } ); diff --git a/src/app/views/sidebar/resource-explorer/command-options/CommandOptions.tsx b/src/app/views/sidebar/resource-explorer/command-options/CommandOptions.tsx index 6949902cd..315b16171 100644 --- a/src/app/views/sidebar/resource-explorer/command-options/CommandOptions.tsx +++ b/src/app/views/sidebar/resource-explorer/command-options/CommandOptions.tsx @@ -11,7 +11,6 @@ import { translateMessage } from '../../../../utils/translate-messages'; import PathsReview from '../panels/PathsReview'; import { resourceExplorerStyles } from '../resources.styles'; - interface ICommandOptions { version: string; }