|
@@ -17,7 +17,7 @@ export const editActions = EditorModule.action({
|
|
|
this.actions.pickComp(compId);
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -42,10 +42,12 @@ export const editActions = EditorModule.action({
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ this.store.currCompId = "";
|
|
|
+ this.store.currStreamCardId = "";
|
|
|
this.store.setCurrComp(compId);
|
|
|
-
|
|
|
+ if (this.store.currCompId == this.store.currStreamCardId) {
|
|
|
+ this.controls.transferCtrl.destroy();
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
pickParentComp(compId: string) {
|
|
@@ -155,6 +157,8 @@ export const editActions = EditorModule.action({
|
|
|
|
|
|
|
|
|
setCompTransform(comp: DesignComp, transform: Layout["transform"]) {
|
|
|
+ if (!comp) return;
|
|
|
+
|
|
|
comp.layout.transform = transform;
|
|
|
console.log(comp);
|
|
|
},
|