Resources service: Delete deprecated setResources
This commit is contained in:
parent
d9afcfcb06
commit
05cfd20bb9
|
@ -61,20 +61,6 @@ export class ResourcesService {
|
||||||
return items;
|
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) {
|
setResources(items: MenuItem[], prefix = '', portal: string = null) {
|
||||||
if (this.subscription) {
|
if (this.subscription) {
|
||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
|
|
Loading…
Reference in New Issue