mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
[CST-4504] lint fixes
This commit is contained in:
@@ -310,13 +310,13 @@ export class EditRelationshipListComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
|
|
||||||
modalComp.discardEv = () => {
|
modalComp.discardEv = () => {
|
||||||
modalComp.toAdd.forEach((searchResult)=>{
|
modalComp.toAdd.forEach( (searchResult) => {
|
||||||
this.selectableListService.deselectSingle(this.listId,searchResult);
|
this.selectableListService.deselectSingle(this.listId,searchResult);
|
||||||
})
|
});
|
||||||
|
|
||||||
modalComp.toRemove.forEach((searchResult)=>{
|
modalComp.toRemove.forEach( (searchResult) => {
|
||||||
this.selectableListService.selectSingle(this.listId,searchResult);
|
this.selectableListService.selectSingle(this.listId,searchResult);
|
||||||
})
|
});
|
||||||
|
|
||||||
modalComp.toAdd = [];
|
modalComp.toAdd = [];
|
||||||
modalComp.toRemove = [];
|
modalComp.toRemove = [];
|
||||||
|
@@ -168,7 +168,6 @@ export class DsDynamicLookupRelationModalComponent implements OnInit, OnDestroy
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log(this.toRemove);
|
|
||||||
if (!!this.currentItemIsLeftItem$) {
|
if (!!this.currentItemIsLeftItem$) {
|
||||||
this.currentItemIsLeftItem$.subscribe((isLeft) => {
|
this.currentItemIsLeftItem$.subscribe((isLeft) => {
|
||||||
this.isLeft = isLeft;
|
this.isLeft = isLeft;
|
||||||
|
@@ -270,9 +270,9 @@ export class DsDynamicLookupRelationSearchTabComponent implements OnInit, OnDest
|
|||||||
return this.getRelatedItem(uuid,resultListOfItems);
|
return this.getRelatedItem(uuid,resultListOfItems);
|
||||||
});
|
});
|
||||||
|
|
||||||
selectableObject = selectableObject.filter((selObject)=>{
|
selectableObject = selectableObject.filter( (selObject) => {
|
||||||
return !this.getIfInRemove(selObject.indexableObject.uuid);
|
return !this.getIfInRemove(selObject.indexableObject.uuid);
|
||||||
})
|
});
|
||||||
|
|
||||||
if ( selectableObject.length > 0 ) {
|
if ( selectableObject.length > 0 ) {
|
||||||
this.selectableListService.select(this.listId, selectableObject);
|
this.selectableListService.select(this.listId, selectableObject);
|
||||||
@@ -298,7 +298,7 @@ export class DsDynamicLookupRelationSearchTabComponent implements OnInit, OnDest
|
|||||||
}
|
}
|
||||||
|
|
||||||
getIfInRemove(uuid: string) {
|
getIfInRemove(uuid: string) {
|
||||||
return !!this.toRemove.find((searchResult)=> searchResult.indexableObject.uuid == uuid);
|
return !!this.toRemove.find( (searchResult) => searchResult.indexableObject.uuid === uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
|
Reference in New Issue
Block a user