Skip to content

Commit

Permalink
Fixing adding items.
Browse files Browse the repository at this point in the history
  • Loading branch information
raguay committed Jun 15, 2024
1 parent 856a845 commit e17bc00
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions frontend/src/stores/Kanban.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const DefaultKanban = {
}
this.SaveKanbanBoards();
},
addBoard: async function() {
await addBoardNamed("New Board","");
addBoard: async function () {
await addBoardNamed("New Board", "");
},
addBoardNamed: async function (name, description) {
//
Expand All @@ -94,18 +94,20 @@ const DefaultKanban = {
addList: async function () {
await this.addListNamed("New List");
},
addListNamed: async function(name) {
const bcur = get(boardCursor);
addListNamed: async function (name) {
const bcur = get(boardCursor);
this.boards[bcur].lists.push({
name: name,
styles: this.defaultListStyle,
items: [],
});
await this.SaveKanbanBoards();

},
addItem: async function() {
await addItemNamed("New Item", "This should describe the card's function.");
addItem: async function () {
await this.addItemNamed(
"New Item",
"This should describe the card's function.",
);
},
addItemNamed: async function (name, description) {
const bcur = get(boardCursor);
Expand All @@ -117,6 +119,7 @@ const DefaultKanban = {
styles: this.defaultItemStyle,
apps: [],
});
console.log(this.boards[bcur].lists[lcur].items);
await this.SaveKanbanBoards();
},
deleteBoard: async function () {
Expand Down

0 comments on commit e17bc00

Please sign in to comment.