Cleanup imports.
This commit is contained in:
parent
fc0c08d58e
commit
f9c2e7f4bc
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user