File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -762,15 +762,16 @@ export class TreeObjectAdapter {
762
762
menuItems = menuItems . concat ( additionalMenuItems ) ;
763
763
}
764
764
765
- console . log ( "selectedObject" , selectedObject ) ;
766
- console . log ( "parentObject" , parentObject ) ;
767
765
if (
768
766
editable &&
769
767
getAncestorOfType (
770
768
selectedObject || parentObject ,
771
769
ProjectEditor . FlowClass . classInfo
772
770
) &&
773
- getKey ( parentObject ) != "localVariables"
771
+ getKey ( parentObject ) != "localVariables" &&
772
+ getKey ( parentObject ) != "actions" &&
773
+ getKey ( parentObject ) != "userPages" &&
774
+ getKey ( parentObject ) != "userWidgets"
774
775
) {
775
776
ProjectEditor . newComponentMenuItem (
776
777
selectedObject || parentObject ,
Original file line number Diff line number Diff line change @@ -742,6 +742,9 @@ export function getAddItemName(object: IEezObject) {
742
742
if ( parent == project . userWidgets ) {
743
743
return "User Widget" ;
744
744
}
745
+ if ( parent == project . actions ) {
746
+ return "User Action" ;
747
+ }
745
748
if ( getParent ( parent ) == project . lvglStyles ) {
746
749
return "Style" ;
747
750
}
You can’t perform that action at this time.
0 commit comments