Better action description + remove removeeventlistener contextmenu
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ebde73bf10
commit
cefeeb54c0
2 changed files with 2 additions and 7 deletions
|
@ -28,7 +28,7 @@ export function SelectContainer(
|
||||||
}
|
}
|
||||||
|
|
||||||
history.push({
|
history.push({
|
||||||
LastAction: `Select container ${selectedContainer.properties.id}`,
|
LastAction: `Select ${selectedContainer.properties.id}`,
|
||||||
MainContainer: mainContainerClone,
|
MainContainer: mainContainerClone,
|
||||||
SelectedContainer: selectedContainer,
|
SelectedContainer: selectedContainer,
|
||||||
SelectedContainerId: selectedContainer.properties.id,
|
SelectedContainerId: selectedContainer.properties.id,
|
||||||
|
@ -89,7 +89,7 @@ export function DeleteContainer(
|
||||||
const SelectedContainerId = SelectedContainer.properties.id;
|
const SelectedContainerId = SelectedContainer.properties.id;
|
||||||
|
|
||||||
history.push({
|
history.push({
|
||||||
LastAction: `Delete container ${containerId}`,
|
LastAction: `Delete ${containerId}`,
|
||||||
MainContainer: mainContainerClone,
|
MainContainer: mainContainerClone,
|
||||||
SelectedContainer,
|
SelectedContainer,
|
||||||
SelectedContainerId,
|
SelectedContainerId,
|
||||||
|
|
|
@ -97,11 +97,6 @@ export const ElementsSidebar: React.FC<IElementsSidebarProps> = (props: IElement
|
||||||
);
|
);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
elementRef.current?.removeEventListener(
|
|
||||||
'contextmenu',
|
|
||||||
onContextMenu
|
|
||||||
);
|
|
||||||
|
|
||||||
window.removeEventListener(
|
window.removeEventListener(
|
||||||
'click',
|
'click',
|
||||||
onLeftClick
|
onLeftClick
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue