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