|
|
|
@ -190,25 +190,14 @@ export class Renderer { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
|
|
const isCurrentStatusDone = targetGroup.classList.contains('done'); |
|
|
|
|
const normalizedGroupId = groupId.replace(/^\d+-/, ''); |
|
|
|
|
const normalizedGroupId = groupId |
|
|
|
|
.replace(/^\d+-/, '') |
|
|
|
|
.replace('check:', ''); |
|
|
|
|
|
|
|
|
|
if (normalizedGroupId.startsWith('ext_link:')) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (/^check:/.test(groupId)) { |
|
|
|
|
window.dispatchEvent( |
|
|
|
|
new CustomEvent(`${this.resourceType}.topic.toggle`, { |
|
|
|
|
detail: { |
|
|
|
|
topicId: groupId.replace('check:', ''), |
|
|
|
|
resourceType: this.resourceType, |
|
|
|
|
resourceId: this.resourceId, |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.updateTopicStatus( |
|
|
|
|
normalizedGroupId, |
|
|
|
|
!isCurrentStatusDone ? 'done' : 'pending', |
|
|
|
|