mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
noImplicitAny: Down approx 200 errors (#18143)
* noImplicitAny playlist approx 200 * Add AngularPanelMenuItem interface * Roughly 100 noImplicitAny
This commit is contained in:
committed by
Torkel Ödegaard
parent
ed099d5ca0
commit
c8498461a5
@@ -1,5 +1,7 @@
|
||||
import { FolderPageLoader } from './services/FolderPageLoader';
|
||||
import locationUtil from 'app/core/utils/location_util';
|
||||
import { NavModelSrv } from 'app/core/core';
|
||||
import { ILocationService } from 'angular';
|
||||
|
||||
export default class FolderDashboardsCtrl {
|
||||
navModel: any;
|
||||
@@ -7,13 +9,18 @@ export default class FolderDashboardsCtrl {
|
||||
uid: string;
|
||||
|
||||
/** @ngInject */
|
||||
constructor(private backendSrv, navModelSrv, private $routeParams, $location) {
|
||||
constructor(
|
||||
private backendSrv: any,
|
||||
navModelSrv: NavModelSrv,
|
||||
private $routeParams: any,
|
||||
$location: ILocationService
|
||||
) {
|
||||
if (this.$routeParams.uid) {
|
||||
this.uid = $routeParams.uid;
|
||||
|
||||
const loader = new FolderPageLoader(this.backendSrv);
|
||||
|
||||
loader.load(this, this.uid, 'manage-folder-dashboards').then(folder => {
|
||||
loader.load(this, this.uid, 'manage-folder-dashboards').then((folder: any) => {
|
||||
const url = locationUtil.stripBaseFromUrl(folder.url);
|
||||
|
||||
if (url !== $location.path()) {
|
||||
|
||||
Reference in New Issue
Block a user