|
|
|
@ -61,20 +61,6 @@ export class ResourcesService {
|
|
|
|
|
return items;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated
|
|
|
|
|
* */
|
|
|
|
|
setResourcesDeprecated(items: MenuItem[], prefix = '', portal: string = null) {
|
|
|
|
|
if (this.subscription) {
|
|
|
|
|
this.subscription.unsubscribe();
|
|
|
|
|
}
|
|
|
|
|
let resources = new MenuItem('resources', 'Resources', "", "", false, [], null, {});
|
|
|
|
|
let index = items.push(resources) - 1;
|
|
|
|
|
this.subscription = from(this.getResourcesItemsAsync(prefix, portal)).subscribe(resourcesItems => {
|
|
|
|
|
items[index].items = resourcesItems;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setResources(items: MenuItem[], prefix = '', portal: string = null) {
|
|
|
|
|
if (this.subscription) {
|
|
|
|
|
this.subscription.unsubscribe();
|
|
|
|
|