Make app work again

This commit is contained in:
schmelczerandras 2019-09-01 10:44:17 +02:00
commit 938f3def1f
4 changed files with 235 additions and 154 deletions

View file

@ -24,7 +24,7 @@
<app-toggle
[beforeText]="'This task hasn\'t been finished yet'"
[afterText]="'Goal already accomplished'"
[default]="!modalService.active.input.isTask"
[default]="isDone"
(value)="isDone = $event"
></app-toggle>
</div>

View file

@ -9,7 +9,7 @@ import { ModalService } from '../../../../services/modal.service';
export class CreateBlockComponent {
selected: string;
description: string = null;
isDone: boolean;
isDone: boolean = !this.modalService.active.input.isTask;
constructor(public modalService: ModalService) {}

View file

@ -8,7 +8,7 @@
<app-select-add
class="select"
[options]="modalService.active.input.options"
[default]="modalService.active.input.options[0]"
[default]="modalService.active.input.default"
[alwaysDropShadow]="true"
[onlyShadowBorder]="true"
[placeholder]="'Tag this item…'"

View file

@ -6,7 +6,7 @@
<p>
You are trying to remove
<span [ngStyle]="{ color: modalService.active.input.baseColor.toString() }">{{
<span [ngStyle]="{ color: modalService.active.input.baseColor | color }">{{
modalService.active.input.name ? modalService.active.input.name : 'an unnamed tower'
}}</span
>.