Skip to content

Commit ffe2c49

Browse files
[update] confirmDeletion (minor fix)
1 parent 8a8f844 commit ffe2c49

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/api/config/js_kanban_cardshape_config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cardShape?: {
2020
attached?: boolean | { show?: boolean },
2121
cover?: boolean | { show?: boolean },
2222
comments?: boolean | { show?: boolean },
23-
confirmDeletion?: boolean,
23+
confirmDeletion?: boolean | { show?: boolean },
2424
start_date?: boolean | {
2525
show?: boolean,
2626
format?: string
@@ -232,7 +232,7 @@ const defaultCardShape = {
232232
start_date: { show: false },
233233
end_date: { show: false },
234234
users: { show: false },
235-
confirmDeletion: false,
235+
confirmDeletion: { show: true },
236236
priority: {
237237
show: false,
238238
values: defaultPriorities
@@ -273,7 +273,7 @@ const cardShape = { // card settings
273273
attached: true,
274274
cover: false,
275275
comments: false,
276-
confirmDeletion: true,
276+
confirmDeletion: false,
277277
color: {
278278
show: true,
279279
values: cardColors

docs/api/config/js_kanban_columnshape_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const columnShape = {
119119
items: getDefaultColumnMenuItems
120120
},
121121
fixedHeaders: true,
122-
confirmDeletion: false
122+
confirmDeletion: true
123123
};
124124
~~~
125125

docs/api/config/js_kanban_rowshape_config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const rowShape = {
109109
show: true,
110110
items: getDefaultRowMenuItems
111111
},
112-
confirmDeletion: false
112+
confirmDeletion: true
113113
};
114114
~~~
115115

@@ -157,7 +157,7 @@ const rowShape = {
157157
}
158158
},
159159
css: (row, cards) => row.id == "task" && cards.length < 3 ? "green" : "red",
160-
confirmDeletion: true
160+
confirmDeletion: false
161161
};
162162

163163
new kanban.Kanban("#root", {

0 commit comments

Comments
 (0)