bugfixes
This commit is contained in:
parent
6bdb99fc06
commit
648927b81f
3 changed files with 4 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
|||
<div class="description">
|
||||
{{ task.description }}
|
||||
</div>
|
||||
<ng-container *ngIf="task.subtasksTitle > ''">
|
||||
<ng-container *ngIf="task.subtasksTitle.length > 0">
|
||||
<div class="subtask">
|
||||
<div class="subtask-line">
|
||||
<span
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { CommonModule } from '@angular/common';
|
|||
import { Component, Input } from '@angular/core';
|
||||
import { DragDropService } from '../../../services/drag-drop.service';
|
||||
import { TaskService } from '../../../services/task.service';
|
||||
import { Task } from '../../../interfaces/task.interface';
|
||||
|
||||
@Component({
|
||||
selector: 'app-task',
|
||||
|
|
@ -11,7 +12,7 @@ import { TaskService } from '../../../services/task.service';
|
|||
styleUrl: './task.component.scss',
|
||||
})
|
||||
export class TaskComponent {
|
||||
@Input() task: any;
|
||||
@Input() task!: Task;
|
||||
|
||||
categoryColors = new Map<string, string>([
|
||||
['HTML', '#E54B20'],
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ export interface Task {
|
|||
description: string;
|
||||
category: string;
|
||||
status: string;
|
||||
priority: string;
|
||||
subtasksTitle: string[];
|
||||
subtasksDone: boolean[];
|
||||
assigned: number[];
|
||||
|
|
|
|||
Loading…
Reference in a new issue