Commit e8e72577 authored by Moises Sacal's avatar Moises Sacal
Browse files

added event to re list notebooks if they have succesfully linked

parent 7f5d7026
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -34,6 +34,7 @@ export class LabarchivesLinkField extends FieldBase<any> {
rdmp: string;
@Input() LinkItem: EventEmitter<any> = new EventEmitter<any>();
@Output() list: EventEmitter<any> = new EventEmitter<any>();
labarchivesService: LabarchivesService;
......@@ -100,6 +101,7 @@ export class LabarchivesLinkField extends FieldBase<any> {
this.checks.linkCreated = true;
this.checks.master = true;
this.processingFail = undefined;
this.list.emit();
} else if(link.message === 'cannot insert node'){
this.processingFail = this.processingNoPermission;
this.checks.linkWithOther = true
......
......@@ -51,6 +51,7 @@ export class LabarchivesListField extends FieldBase<any> {
registerEvents() {
this.fieldMap['Login'].field['userLogin'].subscribe(this.listWorkspaces.bind(this));
this.fieldMap['Link'].field['list'].subscribe(this.listWorkspaces.bind(this));
}
init() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment