diff --git a/cypress/integration/list/list.spec.js b/cypress/integration/list/list.spec.js index a1ac6a0d..e78519e2 100644 --- a/cypress/integration/list/list.spec.js +++ b/cypress/integration/list/list.spec.js @@ -309,7 +309,7 @@ describe('Lists', () => { .should('contain', 'New Bucket Title') }) - it('Can delete a bucket', () => { + it.only('Can delete a bucket', () => { cy.visit('/lists/1/kanban') cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger') @@ -327,6 +327,9 @@ describe('Lists', () => { cy.get('.kanban .bucket .title') .contains(buckets[0].title) .should('not.exist') + cy.get('.kanban .bucket .title') + .contains(buckets[1].title) + .should('exist') }) diff --git a/src/store/modules/kanban.js b/src/store/modules/kanban.js index 284b51ab..b4de07c7 100644 --- a/src/store/modules/kanban.js +++ b/src/store/modules/kanban.js @@ -157,7 +157,7 @@ export default { .then(r => { ctx.commit('removeBucket', bucket) // We reload all buckets because tasks are being moved from the deleted bucket - ctx.dispatch('loadBucketsForList', bucket.listId) + ctx.dispatch('loadBucketsForList', {listId: bucket.listId}) return Promise.resolve(r) }) .catch(e => { diff --git a/src/views/list/views/Kanban.vue b/src/views/list/views/Kanban.vue index b969121a..c75d3810 100644 --- a/src/views/list/views/Kanban.vue +++ b/src/views/list/views/Kanban.vue @@ -31,8 +31,8 @@ :class="{'is-max': bucket.tasks.length >= bucket.limit}" class="limit" v-if="bucket.limit > 0"> - {{ bucket.tasks.length }}/{{ bucket.limit }} - + {{ bucket.tasks.length }}/{{ bucket.limit }} +