forked from hazza/dspace-angular
Added mocks for all model types, added CollectionDataService
This commit is contained in:
14
src/app/core/url-combiner/ui-url-combiner.ts
Normal file
14
src/app/core/url-combiner/ui-url-combiner.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { URLCombiner } from "./url-combiner";
|
||||
import { GlobalConfig } from "../../../config";
|
||||
|
||||
/**
|
||||
* Combines a variable number of strings representing parts
|
||||
* of a relative UI URL in to a single, absolute UI URL
|
||||
*
|
||||
* TODO write tests once GlobalConfig becomes injectable
|
||||
*/
|
||||
export class UIURLCombiner extends URLCombiner{
|
||||
constructor(...parts:Array<string>) {
|
||||
super(GlobalConfig.ui.baseURL, GlobalConfig.ui.nameSpace, ...parts);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user