Refactor to component based style

This commit is contained in:
Cédric Reginster
2017-05-04 15:09:48 +02:00
committed by Daniel Lee
parent f484b4c347
commit ee0d0155a5
5 changed files with 50 additions and 42 deletions

View File

@@ -311,11 +311,10 @@ class GraphCtrl extends MetricsPanelCtrl {
}
exportCsv() {
var scope = this.$scope.$new();
var scope = this.$scope.$new(true);
scope.seriesList = this.seriesList;
this.publishAppEvent('show-modal', {
src: 'public/app/features/dashboard/partials/exportCsvModal.html',
templateHtml: '<export-data-modal data="seriesList"></export-data-modal>',
scope,
modalClass: 'modal--narrow'
});