Prevent selection of basic and admin roles

This commit is contained in:
Andrew Kingston 2024-10-03 11:28:41 +01:00
parent 72f1db8c10
commit 303f400139
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -70,6 +70,7 @@
class="node"
class:selected
class:custom={data.custom}
class:selectable={isConnectable}
style={`--color:${data.color}; --width:${NodeWidth}px; --height:${NodeHeight}px;`}
bind:this={anchor}
>
@ -146,13 +147,13 @@
display: flex;
flex-direction: row;
box-sizing: border-box;
cursor: pointer;
transition: background 130ms ease-out;
}
.node:hover {
.node.selectable:hover {
cursor: pointer;
background: var(--spectrum-global-color-gray-200);
}
.node.selected {
.node.selectable.selected {
background: var(--spectrum-global-color-blue-100);
cursor: grab;
}

View File

@ -127,6 +127,7 @@ export const roleToNode = role => {
deletable: custom,
draggable: custom,
connectable: custom,
selectable: custom,
}
}