Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
chore(lib): add missing references to modules, comment out unimported…
Browse files Browse the repository at this point in the history
… code
  • Loading branch information
joshuawilson committed Mar 4, 2017
1 parent a8270d5 commit a3f38ba
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { WorkItemQuickAddComponent } from './work-item/work-item-quick-add/work-
const routes: Routes = [
{
path: '',
redirectTo: '/work-item/list',
pathMatch: 'full'
// redirectTo: '/work-item/list',
// pathMatch: 'full'
},
{
path: 'login',
Expand Down
11 changes: 9 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ import { LoginService } from './login/login.service';
// Work
import { WorkItemSearchComponent } from './work-item/work-item-search/work-item-search.component';
import { WorkItemService } from './work-item/work-item.service';
import { WorkItemModule } from './work-item/work-item.module';
// import { WorkItemModule } from './work-item/work-item.module';
import { PlannerBoardModule } from './work-item/work-item-board/planner-board.module';
import { PlannerListModule } from './work-item/work-item-list/planner-list.module';

// Mock data
import { MockDataService } from './shared/mock-data.service';
Expand All @@ -65,6 +67,8 @@ if (process.env.ENV == 'inmemory') {
WorkItemService,
MockDataService,
SpaceService,
PlannerBoardModule,
PlannerListModule,
authApiUrlProvider
];
providers = [
Expand All @@ -86,6 +90,8 @@ if (process.env.ENV == 'inmemory') {
WorkItemService,
MockDataService,
SpaceService,
PlannerBoardModule,
PlannerListModule,
authApiUrlProvider
];
providers = [
Expand All @@ -105,7 +111,8 @@ if (process.env.ENV == 'inmemory') {
ModalModule,
TabsModule,
TooltipModule,
WorkItemModule
PlannerBoardModule,
PlannerListModule
],
declarations: [
AppComponent,
Expand Down
6 changes: 5 additions & 1 deletion src/app/work-item/work-item-board/planner-board.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {

import { UserService } from 'ngx-login-client';

import { GlobalSettings } from '../../shared/globals';
import { AlmFilterBoardList } from '../../pipes/alm-board-filter.pipe';
import { IterationModule } from '../../iteration/iteration.module';
import { SidepanelModule } from '../../side-panel/side-panel.module';
Expand All @@ -26,6 +27,7 @@ import { WorkItemBoardComponent } from './work-item-board.component';
import { PlannerBoardRoutingModule } from './planner-board-routing.module';

import { WorkItemDetailModule } from '../work-item-detail/work-item-detail.module';
import { WorkItemService } from '../work-item.service';


@NgModule({
Expand Down Expand Up @@ -53,8 +55,10 @@ import { WorkItemDetailModule } from '../work-item-detail/work-item-detail.modul
],
providers: [
AuthUserResolve,
GlobalSettings,
UserService,
UsersResolve
UsersResolve,
WorkItemService
],
exports: [ WorkItemBoardComponent ]
})
Expand Down
10 changes: 5 additions & 5 deletions src/app/work-item/work-item-board/work-item-board.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
</div>

<div class="boardlaneWrapper">
<div *ngIf="lane.option == 'new'">
<div *ngIf="loggedIn" class="boardQuickAddContainer flex-container in-column-direction">
<alm-work-item-quick-add [wilistview] = "'wi-card-view'" (close)="close($event)"></alm-work-item-quick-add>
</div>
</div>
<!--<div *ngIf="lane.option == 'new'">-->
<!--<div *ngIf="loggedIn" class="boardQuickAddContainer flex-container in-column-direction">-->
<!--<alm-work-item-quick-add [wilistview] = "'wi-card-view'" (close)="close($event)"></alm-work-item-quick-add>-->
<!--</div>-->
<!--</div>-->
<div class="board-card flex-container in-column-direction flex-grow-1" *ngFor='let item of workItems | almFilterBoardList:lane.option' (click)="gotoDetail(item)">
<div>
<div class="pull-left">
Expand Down
9 changes: 7 additions & 2 deletions src/app/work-item/work-item-list/planner-list.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ import {

import { UserService } from 'ngx-login-client';

import { GlobalSettings } from '../../shared/globals';
import { IterationModule } from '../../iteration/iteration.module';
import { SidepanelModule } from '../../side-panel/side-panel.module';
import { AuthUserResolve, UsersResolve } from '../common.resolver';

import { FabPlannerAssociateIterationModalComponent } from '../work-item-iteration-association-modal/work-item-iteration-association-modal.component';
import { WorkItemQuickAddModule } from '../work-item-quick-add/work-item-quick-add.module';
import { WorkItemListComponent } from './work-item-list.component';
import { PlannerListRoutingModule } from './planner-list-routing.module';
import { WorkItemListEntryComponent } from './work-item-list-entry/work-item-list-entry.component';
import { WorkItemDetailModule } from '../work-item-detail/work-item-detail.module';
import { WorkItemService } from '../work-item.service';

@NgModule({
imports: [
Expand All @@ -51,8 +54,10 @@ import { WorkItemDetailModule } from '../work-item-detail/work-item-detail.modul
],
providers: [
AuthUserResolve,
GlobalSettings,
UserService,
UsersResolve
UsersResolve,
WorkItemService
],
exports: [ WorkItemListComponent ]
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div *ngIf="showDialog">
<alm-dialog
(pfDialogClick)="onButtonClick($event)"
[dialog]='dialog'
></alm-dialog>
</div>
<!--<div *ngIf="showDialog">-->
<!--<alm-dialog-->
<!--(pfDialogClick)="onButtonClick($event)"-->
<!--[dialog]='dialog'-->
<!--&gt;</alm-dialog>-->
<!--</div>-->
<div class="list-group-item" (click)="onSelect($event)">
<!--checkbox to select a WI and move it-->
<div class="row-cbh" title="Select the checkbox to move the item.">
Expand Down Expand Up @@ -58,7 +58,7 @@
</div>
</div>

<fab-planner-associate-iteration-modal
[workItem]="workItem"
#associateIterationModal>
</fab-planner-associate-iteration-modal>
<!--<fab-planner-associate-iteration-modal-->
<!--[workItem]="workItem"-->
<!--#associateIterationModal>-->
<!--</fab-planner-associate-iteration-modal>-->
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ <h4>There are no Work Items for your selected criteria.</h4>

<div id="workItemList_Error" class="error" *ngIf="error">{{error}}</div>

<div id="workItemList_quickAdd" class="work-item-list-quick-add" *ngIf="loggedIn">
<alm-work-item-quick-add [wilistview]="'wi-list-view'" (close)="close($event)"></alm-work-item-quick-add>
</div>
<!--<div id="workItemList_quickAdd" class="work-item-list-quick-add" *ngIf="loggedIn">-->
<!--<alm-work-item-quick-add [wilistview]="'wi-list-view'" (close)="close($event)"></alm-work-item-quick-add>-->
<!--</div>-->
</div>

<router-outlet></router-outlet>

0 comments on commit a3f38ba

Please sign in to comment.