mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: updated backend srv to use appEvents and removed parts of alertsSrv
This commit is contained in:
@@ -11,7 +11,7 @@ const template = `
|
||||
`;
|
||||
|
||||
/** @ngInject */
|
||||
function uploadDashboardDirective(timer, alertSrv, $location) {
|
||||
function uploadDashboardDirective(timer, $location) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
template: template,
|
||||
@@ -59,7 +59,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
|
||||
// Something
|
||||
elem[0].addEventListener('change', file_selected, false);
|
||||
} else {
|
||||
alertSrv.set('Oops', 'Sorry, the HTML5 File APIs are not fully supported in this browser.', 'error');
|
||||
appEvents.emit('alert-error', ['Oops', 'The HTML5 File APIs are not fully supported in this browser']);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user