diff --git a/src/scheduler/index.ts b/src/scheduler/index.ts index 427a500..98e6867 100644 --- a/src/scheduler/index.ts +++ b/src/scheduler/index.ts @@ -34,7 +34,7 @@ import uiRouter from '@uirouter/angularjs'; var schedulerTmpl = require('./scheduler.html'); -import { ScheduleComponent } from './schedule.component'; +import { ScheduleListComponent } from './scheduleList.component'; import { ScheduleService } from './schedule.service'; export default angular.module('accountant.scheduler', [ @@ -62,8 +62,8 @@ export default angular.module('accountant.scheduler', [ .factory('scheduleService', downgradeInjectable(ScheduleService)) - .directive('scheduleComponent', downgradeComponent({ - component: ScheduleComponent + .directive('scheduleListComponent', downgradeComponent({ + component: ScheduleListComponent })) .run(function($transitions, accountIdService) { diff --git a/src/scheduler/schedule.module.ts b/src/scheduler/schedule.module.ts index 42d8da1..acc847c 100644 --- a/src/scheduler/schedule.module.ts +++ b/src/scheduler/schedule.module.ts @@ -13,7 +13,7 @@ import { ToastrModule } from 'ngx-toastr'; import { ScheduleService } from './schedule.service'; import { ScheduleDeleteModalComponent } from './scheduleDeleteModal.component'; import { ScheduleRowComponent } from './scheduleRow.component'; -import { ScheduleComponent } from './schedule.component'; +import { ScheduleListComponent } from './scheduleList.component'; export function $modalServiceFactory(i: any) { return i.get('$modal'); @@ -47,12 +47,12 @@ export function accountIdServiceFactory(i: any) { ], declarations: [ ScheduleDeleteModalComponent, - ScheduleComponent, + ScheduleListComponent, ScheduleRowComponent ], entryComponents: [ ScheduleDeleteModalComponent, - ScheduleComponent, + ScheduleListComponent, ScheduleRowComponent ] }) diff --git a/src/scheduler/schedule.states.ts b/src/scheduler/schedule.states.ts index a3b0eae..4912166 100644 --- a/src/scheduler/schedule.states.ts +++ b/src/scheduler/schedule.states.ts @@ -1,11 +1,9 @@ // vim: set tw=80 ts=2 sw=2 sts=2 : -import { ScheduleComponent } from './schedule.component'; - export const ScheduleListState = { name: 'scheduler', url: '/account/:accountId/scheduler', - component: 'scheduleComponent', + component: 'scheduleListComponent', resolve: { accountId: function($transition$) { return $transition$.params().accountId; diff --git a/src/scheduler/schedule.component.ts b/src/scheduler/scheduleList.component.ts similarity index 98% rename from src/scheduler/schedule.component.ts rename to src/scheduler/scheduleList.component.ts index 966bee2..74ab286 100644 --- a/src/scheduler/schedule.component.ts +++ b/src/scheduler/scheduleList.component.ts @@ -45,7 +45,7 @@ var scheduleFormTmpl = require('./schedule.form.tmpl.html'); ` }) -export class ScheduleComponent implements OnInit { +export class ScheduleListComponent implements OnInit { accountId: number; schedules = [];