|
|
|
@ -14,44 +14,9 @@ class GettingStartedPanelCtrl extends PanelCtrl { |
|
|
|
|
constructor($scope, $injector, private backendSrv, private datasourceSrv, private $q) { |
|
|
|
|
super($scope, $injector); |
|
|
|
|
|
|
|
|
|
/* tslint:disable */ |
|
|
|
|
if (contextSrv.user.helpFlags1 & 1) { |
|
|
|
|
this.row.removePanel(this.panel, false); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
/* tslint:enable */ |
|
|
|
|
|
|
|
|
|
this.stepIndex = 0; |
|
|
|
|
this.steps = []; |
|
|
|
|
|
|
|
|
|
if (!contextSrv.hasRole('Admin')) { |
|
|
|
|
this.steps.push({ |
|
|
|
|
cta: 'Basic Concepts Guide', |
|
|
|
|
icon: 'fa fa-file-text-o', |
|
|
|
|
href: 'http://docs.grafana.org/guides/basic_concepts/', |
|
|
|
|
check: () => $q.when(false), |
|
|
|
|
cssClass: 'active', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.steps.push({ |
|
|
|
|
cta: 'Getting Started Guide', |
|
|
|
|
icon: 'fa fa-file-text-o', |
|
|
|
|
href: 'http://docs.grafana.org/guides/getting_started/', |
|
|
|
|
check: () => $q.when(false), |
|
|
|
|
cssClass: 'active', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.steps.push({ |
|
|
|
|
cta: 'Building a dashboard', |
|
|
|
|
icon: 'fa fa-film', |
|
|
|
|
href: 'http://docs.grafana.org/tutorials/screencasts/', |
|
|
|
|
check: () => $q.when(false), |
|
|
|
|
cssClass: 'active', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.steps.push({ |
|
|
|
|
title: 'Install Grafana', |
|
|
|
|
icon: 'icon-gf icon-gf-check', |
|
|
|
@ -114,7 +79,6 @@ class GettingStartedPanelCtrl extends PanelCtrl { |
|
|
|
|
this.stepIndex = -1; |
|
|
|
|
return this.nextStep().then(res => { |
|
|
|
|
this.checksDone = true; |
|
|
|
|
console.log(this.steps); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|