Files
dspace-angular/src/app/core/coar-notify/notify-info/notify-info.component.ts
2023-11-03 17:54:45 +01:00

25 lines
691 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { NotifyInfoService } from './notify-info.service';
import { Observable, of } from 'rxjs';
@Component({
selector: 'ds-notify-info',
templateUrl: './notify-info.component.html',
styleUrls: ['./notify-info.component.scss'],
})
/**
* Component for displaying COAR notification information.
*/
export class NotifyInfoComponent implements OnInit {
/**
* Observable containing the COAR REST INBOX API URLs.
*/
coarRestApiUrl: Observable<string[]> = of([]);
constructor(private notifyInfoService: NotifyInfoService) {}
ngOnInit() {
this.coarRestApiUrl = this.notifyInfoService.getCoarLdnLocalInboxUrls();
}
}