Skip to content
Snippets Groups Projects
Commit 98414653 authored by Robin Leber's avatar Robin Leber
Browse files

context menu for connections

parent fa0a4274
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ export const initContextmenu = (instance) => { ...@@ -12,7 +12,7 @@ export const initContextmenu = (instance) => {
window.selectedConnection = component; window.selectedConnection = component;
$( $(
`<div class='custom-menu'> `<div class='custom-menu'>
<button style='background-color: red; color: white; border: none; padding: 6px 12px;' class='delete-connection'> <button class='custom-menu-button' id='delete-connection'>
Delete connection Delete connection
</button> </button>
</div>` </div>`
...@@ -22,7 +22,7 @@ export const initContextmenu = (instance) => { ...@@ -22,7 +22,7 @@ export const initContextmenu = (instance) => {
} }
}); });
$("body").on("click", ".delete-connection", (event) => { $("body").on("click", "#delete-connection", (event) => {
instance.deleteConnection(window.selectedConnection); instance.deleteConnection(window.selectedConnection);
}); });
$(document).bind("click", (event) => { $(document).bind("click", (event) => {
......
...@@ -98,6 +98,7 @@ body { ...@@ -98,6 +98,7 @@ body {
#delete-pipe:hover { #delete-pipe:hover {
background-color: red; background-color: red;
color: white;
} }
#delete-filter:hover { #delete-filter:hover {
...@@ -105,6 +106,11 @@ body { ...@@ -105,6 +106,11 @@ body {
color: white; color: white;
} }
#delete-connection:hover {
background-color: red;
color: white;
}
#scale-out:hover { #scale-out:hover {
background-color: blue; background-color: blue;
color: white; color: white;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment