Skip to content

Commit

Permalink
Merge pull request #1806 from fdm-monster/fix/unset-tile-shouldnt-ena…
Browse files Browse the repository at this point in the history
…ble-grid-mode

fix: clicking on an empty tile should not enable grid mode
  • Loading branch information
davidzwa authored Dec 25, 2024
2 parents 9408032 + 0a9a7c3 commit 5d2af81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release notes

Fixes

- Printer tile: clicking on an empty tile should not enable grid mode

## Client 23/12/2024 1.8.6

Features
Expand Down
3 changes: 2 additions & 1 deletion src/components/PrinterGrid/PrinterGridTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ const clickConnectUsb = async () => {
const selectOrClearPrinterPosition = async () => {
if (!props.printer || !printerId.value) {
gridStore.gridEditMode = true;
return;
}
Expand All @@ -464,6 +463,7 @@ const selectOrClearPrinterPosition = async () => {
await FloorService.deletePrinterFromFloor(floorId, printerId.value);
return;
}
printerStore.toggleSelectedPrinter(props.printer);
};
</script>
Expand Down Expand Up @@ -506,6 +506,7 @@ const selectOrClearPrinterPosition = async () => {
.tile-no-printer:hover {
background-color: #2a2a2a;
cursor: not-allowed;
}
.plus-hover-icon {
Expand Down

0 comments on commit 5d2af81

Please sign in to comment.