mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Second click on list item closes the details view (#3809)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
1 parent
64fb590377
commit
74f3826235
6 files changed
+37
-7
No files matched your search
@@ -122,7 +122,11 @@ export class Catalog extends React.Component<Props> {
|
||||
}
|
||||
|
||||
onDetails = (item: CatalogEntityItem<CatalogEntity>) => {
|
||||
this.catalogEntityStore.selectedItemId = item.getId();
|
||||
if (this.catalogEntityStore.selectedItemId === item.getId()) {
|
||||
this.catalogEntityStore.selectedItemId = null;
|
||||
} else {
|
||||
this.catalogEntityStore.selectedItemId = item.getId();
|
||||
}
|
||||
};
|
||||
|
||||
onMenuItemClick(menuItem: CatalogEntityContextMenu) {
|
||||
|
||||
Reference in new issue
Block a user