@@ -6,7 +6,7 @@ import NestedError from '@dbux/common/src/NestedError';
66import { throttle } from '@dbux/common/src/util/scheduling' ;
77import { getThemeResourcePath } from '../codePath' ;
88import { registerCommand } from '../../commands/commandUtil' ;
9- import { emitTreeViewAction , emitTreeViewCollapseChangeAction } from '../../userEvents ' ;
9+ import { emitTreeViewAction , emitTreeViewCollapseChangeAction } from '../../userActions ' ;
1010import BaseTreeViewNode from './BaseTreeViewNode' ;
1111
1212/** @typedef { import("./BaseTreeViewNode").default } BaseTreeViewNode */
@@ -184,7 +184,6 @@ export default class BaseTreeViewNodeProvider {
184184
185185 // record user action
186186 const { treeViewName } = this ;
187- const action = '' ; // not a button click
188187 const nodeId = node . id ;
189188 const args = {
190189 description : node . description ,
@@ -195,7 +194,7 @@ export default class BaseTreeViewNodeProvider {
195194 // trigger event handlers
196195 evtHandler . call ( this , node ) ;
197196 this . handleNodeCollapsibleStateChanged ( node ) ;
198- emitTreeViewCollapseChangeAction ( treeViewName , action , nodeId , node . label , node . collapseChangeUserActionType , args ) ;
197+ emitTreeViewCollapseChangeAction ( treeViewName , nodeId , node . label , node . collapseChangeUserActionType , args ) ;
199198 }
200199
201200 handleExpanded ( node ) {
@@ -225,7 +224,6 @@ export default class BaseTreeViewNodeProvider {
225224 */
226225 handleClick = async ( node ) => {
227226 const { treeViewName } = this ;
228- const action = '' ; // not a button click
229227 const nodeId = node . id ;
230228 const args = {
231229 description : node . description ,
@@ -237,7 +235,7 @@ export default class BaseTreeViewNodeProvider {
237235 await node . handleClick ?. ( ) ;
238236 const { clickUserActionType } = node ;
239237 if ( clickUserActionType !== false ) {
240- emitTreeViewAction ( treeViewName , action , nodeId , node . label , clickUserActionType , args ) ;
238+ emitTreeViewAction ( treeViewName , nodeId , node . label , clickUserActionType , args ) ;
241239 }
242240 }
243241 catch ( err ) {
0 commit comments