<eg-fm-record-editor #eventDialog idlClass="atevdef"
[fieldOptions]="{message_template:{customTemplate:{template:textAreaTemplate}},template:{customTemplate:{template:textAreaTemplate}}}"
fieldOrder="owner,name,hook,active,delay,delay_field,group_field,reactor,validator,repeat_delay,id,cleanup_failure,granularity,max_delay,message_library_path,message_template,message_title,message_usr_path,opt_in_setting,usr_field,retention_interval,cleanup_success,template"
+ [remainOpenOnError]="true"
hiddenFields="id">
</eg-fm-record-editor>
<eg-fm-record-editor #hookDialog idlClass="ath"></eg-fm-record-editor>
doClone(eventDef, env_list) {
eventDef.id(null);
+ eventDef.owner(null);
this.eventDialog.mode = 'create';
this.eventDialog.recordId = null;
this.eventDialog.record = eventDef;
env.id(null);
});
this.pcrud.create(env_list).toPromise().then(
- ok => {
- console.debug(ok);
- },
+ ok => { },
err => {
- console.debug(err);
+ this.cloneFailedString.current()
+ .then(str => this.toast.danger(str));
}
);
}