Skip to content

Commit

Permalink
4639/update: rename the copy button labels
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalesi committed Jan 17, 2024
1 parent f4c8ad5 commit 16d3d84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Binary file added bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/shared/components/ResourceActions/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';
import { Tooltip, Button, Popconfirm } from 'antd';
import { Resource } from '@bbp/nexus-sdk';
import useNotification from '../../hooks/useNotification';

import './ResourceActions.less';
import useNotification from '../../hooks/useNotification';

export type ActionType = {
name: string; // A unique name for your action type
Expand Down
12 changes: 6 additions & 6 deletions src/shared/containers/ResourceViewActionsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const ResourceViewActionsContainer: React.FC<{
);
}}
>
URL
Fusion URL
</Menu.Item>
<Menu.Item
onClick={() => {
Expand All @@ -359,20 +359,20 @@ const ResourceViewActionsContainer: React.FC<{
);
}}
>
URL (with revision)
Fusion URL (with revision)
</Menu.Item>
<Menu.Item onClick={() => triggerCopy(resource['@id'])}>
ID
Resource ID
</Menu.Item>
<Menu.Item
onClick={() =>
triggerCopy(`${resource['@id']}?rev=${resource._rev}`)
}
>
ID (with revision)
Resource ID (with revision)
</Menu.Item>
<Menu.Item onClick={() => triggerCopy(self ? self : '')}>
Nexus address
Nexus API endpoint
</Menu.Item>
<Menu.Item
onClick={() =>
Expand All @@ -383,7 +383,7 @@ const ResourceViewActionsContainer: React.FC<{
)
}
>
Nexus address (with revision)
Nexus API endpoint (with revision)
</Menu.Item>
</Menu>
}
Expand Down

0 comments on commit 16d3d84

Please sign in to comment.