79295248

Date: 2024-12-19 18:23:21
Score: 1
Natty:
Report link

That was really helpfull. Thanks. In addition to my and your code:

 <CheckIcon
     v-if="this.isShowAddBtn[index]"
     style="color: red"
     @click="addNewStatus(item.id, item.digital_status_text, index)">
 </CheckIcon>

and

        async addNewStatus(id,status_id,checkboxId) {
  const urlStat = this.$store.state.supervisionURL + "/api/v1//destructive/result/" + id
  await axios.put(urlStat, {
    digital_status: status_id
  })
      .then(response => {
        this.destrTestInfo.forEach((item, index) => {
          if (index === checkboxId) {
            item.isCheckboxChecked = this.isShowAddBtn[index]
            this.isShowAddBtn[index] = false
          }
        })
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MAKSIM S