mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
18 lines
383 B
TypeScript
18 lines
383 B
TypeScript
///<reference path="../../headers/common.d.ts" />
|
|
|
|
import angular from 'angular';
|
|
|
|
export class PluginListCtrl {
|
|
plugins: any[];
|
|
|
|
/** @ngInject */
|
|
constructor(private backendSrv: any) {
|
|
|
|
this.backendSrv.get('api/org/plugins').then(plugins => {
|
|
this.plugins = plugins;
|
|
});
|
|
}
|
|
}
|
|
|
|
angular.module('grafana.controllers').controller('PluginListCtrl', PluginListCtrl);
|