Use accountIdService to retrieve current Account Id in Schedule Component.

This commit is contained in:
Alexis Lahouze 2017-07-25 10:06:41 +02:00
parent 7ea652e23e
commit 3c3741c33f

View File

@ -19,9 +19,12 @@ export class ScheduleComponent {
private toastrService: ToastrService, private toastrService: ToastrService,
private scheduleService: ScheduleService, private scheduleService: ScheduleService,
private logger: Logger, private logger: Logger,
private $modal,
private accountIdService
) {} ) {}
$onInit() { $onInit() {
this.accountId = this.accountIdService.get();
// Load operations on controller initialization. // Load operations on controller initialization.
this.load(); this.load();
} }