Skip to content

Commit

Permalink
feat: add column name to related records (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored Sep 17, 2022
1 parent d11c680 commit cc82533
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BrowserCell/BrowserCell.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default class BrowserCell extends Component {
cl.forEach((column, field) => {
if (column.targetClass !== pointerClassName) { return; }
relatedRecordsMenuItem.items.push({
text: className, callback: () => {
text: `${className}`, subtext: `${field}`, callback: () => {
let relatedObject = value;
if (this.props.field === 'objectId') {
relatedObject = new Parse.Object(pointerClassName);
Expand Down
1 change: 1 addition & 0 deletions src/components/ContextMenu/ContextMenu.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const MenuSection = ({ level, items, path, setPath, hide }) => {
}}
>
{item.text}
{item.subtext && <span> - {item.subtext}</span>}
</li>
);
})}
Expand Down
3 changes: 3 additions & 0 deletions src/components/ContextMenu/ContextMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
cursor: pointer;
white-space: nowrap;
padding: 0 30px 0 10px;
span {
color: #A2A6B1
}
}

li:hover {
Expand Down

0 comments on commit cc82533

Please sign in to comment.