mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
[CST-12454] getting inbox url from rest for notify info page
This commit is contained in:
@@ -2,7 +2,6 @@ import { Injectable } from '@angular/core';
|
||||
import { getFirstSucceededRemoteData, getRemoteDataPayload } from '../../shared/operators';
|
||||
import { ConfigurationDataService } from '../../data/configuration-data.service';
|
||||
import { map, Observable } from 'rxjs';
|
||||
import { DefaultAppConfig } from '../../../../config/default-app-config';
|
||||
import { ConfigurationProperty } from '../../shared/configuration-property.model';
|
||||
|
||||
@Injectable({
|
||||
@@ -44,18 +43,6 @@ export class NotifyInfoService {
|
||||
);
|
||||
}
|
||||
|
||||
getCoarLdnRestApiUrl(): string {
|
||||
const appConfig = new DefaultAppConfig();
|
||||
const restConfig = appConfig.rest;
|
||||
|
||||
const ssl = restConfig.ssl;
|
||||
const host = restConfig.host;
|
||||
const port = restConfig.port;
|
||||
const namespace = restConfig.nameSpace;
|
||||
|
||||
return `${ssl ? 'https' : 'http'}://${host}:${port}${namespace}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the relation link for the inbox
|
||||
* @returns the relation link for the inbox
|
||||
|
Reference in New Issue
Block a user