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');
|
scheduleDeleteTmpl = require('./schedule.delete.tmpl.html');
|
||||||
|
|
||||||
export class ScheduleController{
|
export class ScheduleController{
|
||||||
$inject=['$rootScope', '$stateParams', 'Notification', 'ScheduledOperation', '$log', '$modal']
|
$inject=['$stateParams', 'Notification', 'ScheduledOperation', '$modal']
|
||||||
|
|
||||||
operations = [];
|
operations = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private $rootScope,
|
|
||||||
private $stateParams,
|
private $stateParams,
|
||||||
private Notification,
|
private Notification,
|
||||||
private ScheduledOperation,
|
private ScheduledOperation,
|
||||||
private $log,
|
|
||||||
private $modal
|
private $modal
|
||||||
) {
|
) {
|
||||||
// Load operations on controller initialization.
|
// Load operations on controller initialization.
|
||||||
@ -51,8 +49,6 @@ export class ScheduleController{
|
|||||||
|
|
||||||
return operation;
|
return operation;
|
||||||
}, function(result){
|
}, function(result){
|
||||||
this.$log.error('Error while saving scheduled operation', operation, result);
|
|
||||||
|
|
||||||
this.Notification.error(
|
this.Notification.error(
|
||||||
'Error while saving scheduled operation: ' + result.message
|
'Error while saving scheduled operation: ' + result.message
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user