Switch to FO pane on any label click in CP or SubObjects panes

This commit is contained in:
c0dev0id
2026-06-23 21:36:46 +02:00
parent 4c392927cf
commit c52b0bf9cf
3 changed files with 7 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ function shortView(node) {
}
export const PaneCP = {
props: ['store', 'onImportClick'],
props: ['store', 'onImportClick', 'onFocusFO'],
setup(props) {
const exporting = ref(false);
const exportError = ref('');
@@ -92,6 +92,7 @@ export const PaneCP = {
onClick: () => {
if (idx === -1) store.setFocus([]);
else store.setFocus(fp.slice(0, idx + 1));
props.onFocusFO?.();
},
}, [
h('span', { class: 'se-object-type' }, typeTag),