mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2026-01-29 14:35:26 +01:00
toggle tools when shape tool or zone tool is selected, remove unused mobile dialog reference
This commit is contained in:
@@ -592,8 +592,21 @@ var SpacedeckSections = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_.contains(["mobile","shapes","zones"],id)) {
|
if (_.contains(["shapes","zones"],id)) {
|
||||||
this.deselect();
|
this.deselect();
|
||||||
|
if (id == "zones") {
|
||||||
|
if (this.active_tool == "zone") {
|
||||||
|
this.active_tool = "pointer";
|
||||||
|
} else {
|
||||||
|
this.active_tool = "zone";
|
||||||
|
}
|
||||||
|
} else if (id == "shapes") {
|
||||||
|
if (this.active_tool == "shape") {
|
||||||
|
this.active_tool = "pointer";
|
||||||
|
} else {
|
||||||
|
this.active_tool = "shape";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.opened_dialog=id;
|
this.opened_dialog=id;
|
||||||
|
|||||||
Reference in New Issue
Block a user