Skip to content

Commit

Permalink
Chore: Update to 5.0.0 (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 4, 2022
1 parent 592f2de commit b23ee8f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -124,4 +124,4 @@
"reportFile": "test-report.xml",
"indent": 4
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)) : [];
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/views/query-runner/request/permissions/TabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
20 changes: 10 additions & 10 deletions src/app/views/sidebar/resource-explorer/ResourceLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
};

Expand All @@ -39,19 +39,20 @@ const ResourceLink = (props: IResourceLinkProps) => {

return <span className={linkStyle.link}>
{resourceLink.method &&
<span
className={classes.badge}
style={methodButtonStyles}
>
{resourceLink.method}
</span>}
<span
className={classes.badge}
style={methodButtonStyles}
>
{resourceLink.method}
</span>}

<span className={linkStyle.resourceLinkNameContainer}>
<span className={linkStyle.resourceLinkText}>
{resourceLink.name}
</span>
</span>


{items.length > 0 &&
<TooltipHost
content={translateMessage('More actions')}
Expand Down Expand Up @@ -86,8 +87,7 @@ const ResourceLink = (props: IResourceLinkProps) => {
function getMenuItems() {
const menuItems: IContextualMenuItem[] = [];

if (resourceLink)
{
if (resourceLink) {
if (resourceLink.type === ResourceLinkType.NODE) {
menuItems.push(
{
Expand All @@ -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' }
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { translateMessage } from '../../../../utils/translate-messages';
import PathsReview from '../panels/PathsReview';
import { resourceExplorerStyles } from '../resources.styles';


interface ICommandOptions {
version: string;
}
Expand Down

0 comments on commit b23ee8f

Please sign in to comment.