mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 11:03:05 +00:00
CST-12498 Final refactor
This commit is contained in:
@@ -183,6 +183,7 @@ export class LdnServiceFormEditComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates an array of patch operations based on form changes
|
* Generates an array of patch operations based on form changes
|
||||||
* @returns Array of patch operations
|
* @returns Array of patch operations
|
||||||
@@ -253,6 +254,7 @@ export class LdnServiceFormEditComponent implements OnInit {
|
|||||||
patternArray.controls[index].patchValue({patternLabel: this.translateService.instant('ldn-service.form.pattern.' + patternValue + '.label')})
|
patternArray.controls[index].patchValue({patternLabel: this.translateService.instant('ldn-service.form.pattern.' + patternValue + '.label')})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Selects an outbound item filter by updating its value based on the provided filter value and index
|
* Selects an outbound item filter by updating its value based on the provided filter value and index
|
||||||
* @param filterValue - The selected filter value
|
* @param filterValue - The selected filter value
|
||||||
@@ -418,6 +420,7 @@ export class LdnServiceFormEditComponent implements OnInit {
|
|||||||
this.markedForDeletionOutboundPattern.splice(i, 1);
|
this.markedForDeletionOutboundPattern.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes marked inbound patterns from the form model
|
* Deletes marked inbound patterns from the form model
|
||||||
*/
|
*/
|
||||||
|
@@ -137,7 +137,7 @@ export class LdnServiceFormComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles the creation of an LDN service by validating form fields,
|
* Handles the creation of an LDN service by retrieving and validating form fields,
|
||||||
* and submitting the form data to the LDN services endpoint.
|
* and submitting the form data to the LDN services endpoint.
|
||||||
*/
|
*/
|
||||||
createService() {
|
createService() {
|
||||||
@@ -334,6 +334,7 @@ export class LdnServiceFormComponent implements OnInit {
|
|||||||
private sendBack() {
|
private sendBack() {
|
||||||
this.router.navigateByUrl('admin/ldn/services');
|
this.router.navigateByUrl('admin/ldn/services');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a form group for an outbound pattern in the notifyServiceOutboundPatterns form array.
|
* Creates a form group for an outbound pattern in the notifyServiceOutboundPatterns form array.
|
||||||
*
|
*
|
||||||
|
@@ -45,7 +45,8 @@ describe('LdnServicesOverviewComponent', ( ) => {
|
|||||||
{provide: PaginationService, useValue: paginationService},
|
{provide: PaginationService, useValue: paginationService},
|
||||||
{
|
{
|
||||||
provide: NgbModal, useValue: {
|
provide: NgbModal, useValue: {
|
||||||
open: () => { /*comment*/}
|
open: () => { /*comment*/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{provide: ChangeDetectorRef, useValue: {}},
|
{provide: ChangeDetectorRef, useValue: {}},
|
||||||
|
@@ -27,7 +27,7 @@ import {TranslateService} from '@ngx-translate/core';
|
|||||||
/**
|
/**
|
||||||
* The `LdnServicesOverviewComponent` is a component that provides an overview of LDN (Linked Data Notifications) services.
|
* The `LdnServicesOverviewComponent` is a component that provides an overview of LDN (Linked Data Notifications) services.
|
||||||
* It displays a paginated list of LDN services, allows users to edit and delete services,
|
* It displays a paginated list of LDN services, allows users to edit and delete services,
|
||||||
* toggle the status of each service directly form the page and allows for creation of new services redirecting the user on the creation form
|
* toggle the status of each service directly form the page and allows for creation of new services redirecting the user on the creation/edit form
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-ldn-services-directory',
|
selector: 'ds-ldn-services-directory',
|
||||||
@@ -52,7 +52,6 @@ export class LdnServicesOverviewComponent implements OnInit, OnDestroy {
|
|||||||
modalRef: any;
|
modalRef: any;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected ldnServicesService: LdnServicesService,
|
protected ldnServicesService: LdnServicesService,
|
||||||
protected paginationService: PaginationService,
|
protected paginationService: PaginationService,
|
||||||
|
Reference in New Issue
Block a user