mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 00:03:07 +00:00
fix app anchors
This commit is contained in:
@@ -131,7 +131,10 @@
|
||||
locked={isFixed(gridComponent)}
|
||||
on:delete={() => removeGridElement(gridComponent.data)}
|
||||
on:lock={() => {
|
||||
gridComponent = toggleFixed(gridComponent)
|
||||
let fComponent = $app.grid.find((c) => c.id === gridComponent.id)
|
||||
if (fComponent) {
|
||||
fComponent = toggleFixed(fComponent)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -23,8 +23,9 @@ function disableDrag(component: GridItem): GridItem {
|
||||
}
|
||||
|
||||
function toggleFixed(component: GridItem): GridItem {
|
||||
const nValue = !component[gridColumns[0]].fixed
|
||||
gridColumns.forEach((column: number) => {
|
||||
component[column].fixed = !component[column].fixed
|
||||
component[column].fixed = nValue
|
||||
})
|
||||
|
||||
return component
|
||||
|
||||
Reference in New Issue
Block a user