mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Changed functions to arrow functions for only-arrow-functions rule. (#13131)
This commit is contained in:
committed by
Torkel Ödegaard
parent
7c88436a9b
commit
72ab24f300
@@ -16,11 +16,11 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
|
||||
scope: {
|
||||
onUpload: '&',
|
||||
},
|
||||
link: function(scope) {
|
||||
link: scope => {
|
||||
function file_selected(evt) {
|
||||
const files = evt.target.files; // FileList object
|
||||
const readerOnload = function() {
|
||||
return function(e) {
|
||||
const readerOnload = () => {
|
||||
return e => {
|
||||
let dash;
|
||||
try {
|
||||
dash = JSON.parse(e.target.result);
|
||||
@@ -30,7 +30,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
|
||||
return;
|
||||
}
|
||||
|
||||
scope.$apply(function() {
|
||||
scope.$apply(() => {
|
||||
scope.onUpload({ dash: dash });
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user