Cleanup imports.

This commit is contained in:
Alexis Lahouze 2017-07-21 23:11:04 +02:00
parent fc0c08d58e
commit f9c2e7f4bc

View File

@ -2,16 +2,14 @@ var scheduleFormTmpl = require('./schedule.form.tmpl.html'),
scheduleDeleteTmpl = require('./schedule.delete.tmpl.html');
export class ScheduleController{
$inject=['$rootScope', '$stateParams', 'Notification', 'ScheduledOperation', '$log', '$modal']
$inject=['$stateParams', 'Notification', 'ScheduledOperation', '$modal']
operations = [];
constructor(
private $rootScope,
private $stateParams,
private Notification,
private ScheduledOperation,
private $log,
private $modal
) {
// Load operations on controller initialization.
@ -51,8 +49,6 @@ export class ScheduleController{
return operation;
}, function(result){
this.$log.error('Error while saving scheduled operation', operation, result);
this.Notification.error(
'Error while saving scheduled operation: ' + result.message
);