UI-tests und fixes aus tests
This commit is contained in:
1 parent
73da8fb849
commit
968d980be1
46 files changed
+3853
-61
No files matched your search
@@ -40,10 +40,14 @@ export function pushCardEdit(label, cardId, prevData) {
|
||||
|
||||
export function pushCardDelete(label, card) {
|
||||
pushUndo(label, async () => {
|
||||
await api('api/cards', { method: 'POST', body: {
|
||||
const created = await api('api/cards', { method: 'POST', body: {
|
||||
title: card.title, body: card.body, color: card.color,
|
||||
bucket_id: card.bucket_id, position: card.position,
|
||||
bucket_id: card.bucket_id, parent_id: card.parent_id, position: card.position,
|
||||
}});
|
||||
// Restore fields that POST doesn't accept
|
||||
if (created?.id && card.due_date) {
|
||||
await api(`api/cards/${created.id}`, { method: 'PATCH', body: { due_date: card.due_date } });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user