Merge branch 'feature/initial-viewer-ui-updates' of https://github.com/specklesystems/speckle-server into feature/initial-viewer-ui-updates
This commit is contained in:
@@ -120,6 +120,10 @@ const toggleActivePanel = (panel: ActivePanel) => {
|
||||
if (panel === ActivePanel.sectionBox) {
|
||||
toggleSectionBox()
|
||||
}
|
||||
|
||||
if (panel === ActivePanel.measurements) {
|
||||
enableMeasurements(true)
|
||||
}
|
||||
}
|
||||
|
||||
const toggleMeasurements = () => {
|
||||
@@ -132,6 +136,9 @@ const onActivePanelClose = () => {
|
||||
if (activePanel.value === ActivePanel.sectionBox) {
|
||||
toggleSectionBox()
|
||||
}
|
||||
if (activePanel.value === ActivePanel.measurements) {
|
||||
enableMeasurements(false)
|
||||
}
|
||||
activePanel.value = ActivePanel.none
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user