Skip to content

Commit

Permalink
Experiment with fact clicking by checkbox #120
Browse files Browse the repository at this point in the history
  • Loading branch information
blackchestnut committed Aug 27, 2022
1 parent 14123ac commit 46529ec
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/board/issue_show.vue
Expand Up @@ -221,7 +221,6 @@ export default {
isStateSubmitting: false,
isArchiveSubmitting: false,
isCommentSubmitting: false,
isTaskChecking: false,
assignableUsers: []
}),
computed: {
Expand Down Expand Up @@ -518,20 +517,14 @@ export default {
);
},
async taskClickHandler({ detail }) {
if (this.isTaskChecking) { return; }
this.isTaskChecking = true;
const { textOld, textNew } = detail;
this.newBody = this.newBody.replace(textOld, textNew);
this.tmpBody = this.newBody;
// Unnecessary here. Remove after 01.07.2022 if checkboxes will fixed.
// this.update({ body: this.newBody });
await this.updateIssue({
id: this.id,
body: this.newBody,
columnId: this.fetchedIssue.columnId
});
this.isTaskChecking = false;
}
}
}
Expand Down

0 comments on commit 46529ec

Please sign in to comment.