|
@@ -38,12 +38,16 @@
|
|
|
useViewer.setRightPanelButtonDisabled(disabled)
|
|
|
})
|
|
|
|
|
|
- watch(() => isActive.value, (newValue, oldValue) => {
|
|
|
- core.eventBus().dispatch('isRightSidePanelOpened', newValue)
|
|
|
+ watch([isActive, contentEditorPanel], (newValue, oldValue) => {
|
|
|
+ if (newValue[0] || newValue[1]) {
|
|
|
+ core.eventBus().dispatch('isRightSidePanelOpened', true)
|
|
|
+ } else {
|
|
|
+ core.eventBus().dispatch('isRightSidePanelOpened', false)
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
watch(rightPanelButtonDisabled, (newValue, oldValue) => {
|
|
|
- core.eventBus().dispatch('isRightPanelDisabled', newValue)
|
|
|
+ core.eventBus().dispatch('isRightSidePanelBtnDisabled', newValue)
|
|
|
})
|
|
|
|
|
|
const onClick = () => {
|