|
@@ -108,8 +108,9 @@ export const helpers = EditorModule.helper({
|
|
return i >= 0;
|
|
return i >= 0;
|
|
},
|
|
},
|
|
isCompCanDelete(compId: string): boolean {
|
|
isCompCanDelete(compId: string): boolean {
|
|
- return this.helper.isStreamCardChild(compId);
|
|
|
|
|
|
+ return this.helper.isStreamCardChild(compId) || (this.helper.isStreamCard(compId) && this.store.streamCardIds.length > 1);
|
|
},
|
|
},
|
|
|
|
+
|
|
isShowSaveComp(comp: DesignComp): boolean {
|
|
isShowSaveComp(comp: DesignComp): boolean {
|
|
if ( !this.helper.isStreamCardChild(comp.id) ) return false;
|
|
if ( !this.helper.isStreamCardChild(comp.id) ) return false;
|
|
return true;
|
|
return true;
|