From 0d1fd3827b60814f9c9048de23d2431f2f670404 Mon Sep 17 00:00:00 2001 From: DeDxYk594 Date: Sat, 28 Sep 2024 21:43:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80?= =?UTF-8?q?=D1=84=D0=B5=D0=B9=D1=81:=20Column=20->=20BorderColumn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/active_board.ts | 4 ++-- src/stores/activeBoardStore.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/active_board.ts b/src/models/active_board.ts index afbfc6f..68578c8 100644 --- a/src/models/active_board.ts +++ b/src/models/active_board.ts @@ -1,12 +1,12 @@ import { Board } from "./board"; import { Card } from "./card"; -export interface Column { +export interface BoardColumn { id: number; title: string; cards: Card[]; } export interface ActiveBoard extends Board { - columns: Column[]; + columns: BoardColumn[]; } diff --git a/src/stores/activeBoardStore.ts b/src/stores/activeBoardStore.ts index 778f46d..4aec1ac 100644 --- a/src/stores/activeBoardStore.ts +++ b/src/stores/activeBoardStore.ts @@ -1,4 +1,4 @@ -import { ActiveBoard, Column } from "models/active_board.js"; +import { ActiveBoard, BoardColumn } from "models/active_board.js"; import { Card } from "models/card.js"; class ActiveBoardStore { @@ -24,7 +24,7 @@ class ActiveBoardStore { }; } - addCard(card: Card, column: Column) { + addCard(card: Card, column: BoardColumn) { column.cards.push(card); //TODO сходить в базу //TODO перерисовка