blob: 12432256d7512e98d97b9c20e31257e128c340a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { Injectable } from '@angular/core';
import {Plugin, PluginsConfiguration} from "app/models";
@Injectable()
export class PluginsService {
constructor() {
}
public getPluginByStateUrl = (stateUrl: string) => {
let pluginKey: any = _.findKey(PluginsConfiguration.plugins, (pluginConfig: Plugin) =>{
return pluginConfig.pluginStateUrl === stateUrl;
});
return PluginsConfiguration.plugins[pluginKey];
}
}
|