From 9ae914409379ea991f12a6bda62b3b42de1ef202 Mon Sep 17 00:00:00 2001 From: Matthew Ross Date: Thu, 16 Mar 2017 06:27:58 -0400 Subject: [PATCH] WIP --- src/app/board/board.component.html | 38 ++++++++++++++++++++++ src/app/board/column/column.component.html | 38 ---------------------- src/app/board/column/column.component.ts | 11 +++---- 3 files changed, 42 insertions(+), 45 deletions(-) diff --git a/src/app/board/board.component.html b/src/app/board/board.component.html index 2a24bbc..6a2074d 100644 --- a/src/app/board/board.component.html +++ b/src/app/board/board.component.html @@ -63,3 +63,41 @@ [column]="column"> + + + + + + + +
{{ modalProps | json }}
+
+ + +
+
+ diff --git a/src/app/board/column/column.component.html b/src/app/board/column/column.component.html index 30a832b..8237ba4 100644 --- a/src/app/board/column/column.component.html +++ b/src/app/board/column/column.component.html @@ -78,41 +78,3 @@ - - - - - - - -
{{ modalProps | json }}
-
- - -
-
- diff --git a/src/app/board/column/column.component.ts b/src/app/board/column/column.component.ts index ba33e3a..6a096d9 100644 --- a/src/app/board/column/column.component.ts +++ b/src/app/board/column/column.component.ts @@ -15,7 +15,6 @@ import { User, UserOptions, AuthService, - ModalService, NotificationsService } from '../../shared/index'; import { BoardService } from '../board.service'; @@ -34,19 +33,15 @@ export class ColumnDisplay implements OnInit { private tasks: Array; private modalProps: Task; - private MODAL_ID: string; - private MODAL_CONFIRM_ID: string; - @Input('column') columnData: Column; + @Input('add-task-modal-id') addModalId: string; + @Input('remove-task-modal-id') removeModalId: string; constructor(private elRef: ElementRef, private auth: AuthService, private notes: NotificationsService, private modal: ModalService, private boardService: BoardService) { - this.MODAL_ID = 'task-addEdit-form'; - this.MODAL_CONFIRM_ID = 'task-remove-confirm'; - this.templateElement = elRef.nativeElement; this.tasks = []; this.collapseTasks = false; @@ -109,6 +104,8 @@ export class ColumnDisplay implements OnInit { private showModal(): void { this.modalProps = new Task(); + this.modalProps.column_id = +this.columnData.id; + this.modal.open(this.MODAL_ID); } }