diff --git a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts index 529fd6f99..9040c9a8e 100644 --- a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts +++ b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts @@ -24,6 +24,8 @@ import { } from '@taiga-ui/kit'; import {TuiCardLarge, TuiCell, TuiHeader} from '@taiga-ui/layout'; +export const actions = ['doctor', 'play', 'clean', 'feed']; + export const animals = [ { src: './nft/1.jpg', diff --git a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/animal/animal.component.html b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/animal/animal.component.html index 150f930ea..6db515d6c 100644 --- a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/animal/animal.component.html +++ b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/animal/animal.component.html @@ -47,9 +47,10 @@

-

From: {{ animal.from }}

-

Description: {{ animal.about }}

+

From: {{ animal.from }}

+

Description: {{ animal.about }}

+
Description: {{ animal.about }}
- @for (act of animal.action; track $index) { + @for (act of actions; track $index) {
@@ -76,14 +78,11 @@

Description: {{ animal.about }}

class="card" [style.margin-bottom]="'auto'" [style.margin-top]="'auto'" - (click)="states[$index] = !states[$index]" + (click)="inArray(act) ? (states[$index] = !states[$index]) : ''" > -

+

{{ act }} -

+

@if (states[$index]) {