mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
remove logs, fix lint issues
This commit is contained in:
@@ -246,13 +246,6 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
|
||||
this.isRelationship = hasValue(this.model.relationship);
|
||||
const isWrapperAroundRelationshipList = hasValue(this.model.relationshipConfig);
|
||||
|
||||
if(this.isRelationship) {
|
||||
console.log('isRelationship', this.model, this.model.value);
|
||||
}
|
||||
if (isWrapperAroundRelationshipList) {
|
||||
console.log('isWrapperAroundRelationshipList', this.model, this.model.value)
|
||||
}
|
||||
|
||||
if (this.isRelationship || isWrapperAroundRelationshipList) {
|
||||
const config = this.model.relationshipConfig || this.model.relationship;
|
||||
const relationshipOptions = Object.assign(new RelationshipOptions(), config);
|
||||
@@ -303,7 +296,6 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
|
||||
getAllSucceededRemoteData(),
|
||||
getRemoteDataPayload());
|
||||
this.relationshipValue$ = observableCombineLatest([this.item$.pipe(take(1)), relationship$]).pipe(
|
||||
tap((v) => console.log('tapvamu', v)),
|
||||
switchMap(([item, relationship]: [Item, Relationship]) =>
|
||||
relationship.leftItem.pipe(
|
||||
getAllSucceededRemoteData(),
|
||||
|
@@ -137,7 +137,6 @@ export class ExistingRelationListElementComponent implements OnInit, OnChanges,
|
||||
*/
|
||||
ngOnChanges() {
|
||||
if (hasValue(this.reoRel)) {
|
||||
console.log('onChanges', this.reoRel.useLeftItem ? this.reoRel.relationship._links.leftItem.href : this.reoRel.relationship._links.rightItem.href);
|
||||
const item$ = this.reoRel.useLeftItem ?
|
||||
this.reoRel.relationship.leftItem : this.reoRel.relationship.rightItem;
|
||||
this.subs.push(item$.pipe(
|
||||
|
@@ -183,7 +183,6 @@ export class DsDynamicFormArrayComponent extends DynamicFormArrayComponent imple
|
||||
let hasMetadataField = false;
|
||||
this.reorderables.forEach((reorderable: Reorderable, index: number) => {
|
||||
if (reorderable.hasMoved) {
|
||||
console.log('reorderable moved', reorderable);
|
||||
const prevIndex = reorderable.oldIndex;
|
||||
const updatedReorderable = reorderable.update().pipe(take(1));
|
||||
updatedReorderables.push(updatedReorderable);
|
||||
@@ -192,7 +191,6 @@ export class DsDynamicFormArrayComponent extends DynamicFormArrayComponent imple
|
||||
updatedReorderable.subscribe((v) => {
|
||||
const reoMD = reorderable as ReorderableFormFieldMetadataValue;
|
||||
reoMD.model.value = reoMD.metadataValue;
|
||||
console.log('reoMD', reoMD);
|
||||
this.onChange({
|
||||
$event: { previousIndex: prevIndex },
|
||||
context: { index },
|
||||
|
@@ -146,7 +146,6 @@ export class DsDynamicLookupRelationModalComponent implements OnInit, OnDestroy
|
||||
* @param selectableObjects
|
||||
*/
|
||||
select(...selectableObjects: Array<SearchResult<Item>>) {
|
||||
console.log('selectableObjects', selectableObjects);
|
||||
this.zone.runOutsideAngular(
|
||||
() => {
|
||||
const obs: Observable<any[]> = combineLatest(...selectableObjects.map((sri: SearchResult<Item>) => {
|
||||
|
@@ -49,7 +49,7 @@ export class ListableObjectComponentLoaderComponent implements OnInit {
|
||||
/**
|
||||
* Whether to show the badge label or not
|
||||
*/
|
||||
@Input() showLabel: boolean = true;
|
||||
@Input() showLabel = true;
|
||||
|
||||
/**
|
||||
* Directive hook used to place the dynamic child component
|
||||
|
@@ -32,7 +32,7 @@ export class AbstractListableElementComponent<T extends ListableObject> {
|
||||
/**
|
||||
* Whether to show the badge label or not
|
||||
*/
|
||||
@Input() showLabel: boolean = true;
|
||||
@Input() showLabel = true;
|
||||
|
||||
/**
|
||||
* The context we matched on to get this component
|
||||
|
@@ -73,7 +73,7 @@ export class SubmissionObjectEffects {
|
||||
const config = sectionDefinition._links.config ? (sectionDefinition._links.config.href || sectionDefinition._links.config) : '';
|
||||
const enabled = (sectionDefinition.mandatory) || (isNotEmpty(action.payload.sections) && action.payload.sections.hasOwnProperty(sectionId));
|
||||
let sectionData;
|
||||
if (sectionDefinition.sectionType != SectionsType.SubmissionForm) {
|
||||
if (sectionDefinition.sectionType !== SectionsType.SubmissionForm) {
|
||||
sectionData = (isNotUndefined(action.payload.sections) && isNotUndefined(action.payload.sections[sectionId])) ? action.payload.sections[sectionId] : Object.create(null);
|
||||
} else {
|
||||
sectionData = action.payload.item.metadata;
|
||||
@@ -251,10 +251,6 @@ export class SubmissionObjectEffects {
|
||||
|
||||
@Effect() addAllMetadataToSectionData = this.actions$.pipe(
|
||||
ofType(SubmissionObjectActionTypes.UPLOAD_SECTION_DATA),
|
||||
tap((v) => {
|
||||
if ((v as any).payload.sectionId === 'orgUnitStep')
|
||||
console.log('EFFECT', 'in', v)
|
||||
}),
|
||||
mergeMap((action: UpdateSectionDataAction) => {
|
||||
const sectionKeys = Object.keys(action.payload.data);
|
||||
|
||||
|
@@ -176,7 +176,6 @@ export class SectionsService {
|
||||
filter((sectionObj: SubmissionSectionObject) => hasValue(sectionObj)),
|
||||
map((sectionObj: SubmissionSectionObject) => sectionObj),
|
||||
distinctUntilChanged(),
|
||||
tap((v) => console.log('sectionStateChange', submissionId, sectionId, v)),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user