Skip to content

Refactor delete modal rendering; auto-emit from delete link - #861

Merged
poppastring merged 1 commit into
mainfrom
delete-post-fix
Jun 30, 2026
Merged

poppastring merged 1 commit into
mainfrom
delete-post-fix

Conversation

@poppastring

Copy link
Copy Markdown
Owner

Refactor delete modal rendering; auto-emit from delete link

Centralize delete modal HTML in DeletePostModalRenderer and ensure each modal is rendered only once per post per request. Update PostDeleteLinkTagHelper to emit the modal automatically and accept dependencies via DI. Mark DeletePostTagHelper and DeletePostModalTagHelper as obsolete, updating their logic to use the new renderer. Remove explicit usage from _BlogItem.cshtml. Update _DeleteConfirmationModalPartial.cshtml with obsolescence notes for backward compatibility. Prevent duplicate modal markup and IDs in themes.

Centralize delete modal HTML in DeletePostModalRenderer and ensure each modal is rendered only once per post per request. Update PostDeleteLinkTagHelper to emit the modal automatically and accept dependencies via DI. Mark DeletePostTagHelper and DeletePostModalTagHelper as obsolete, updating their logic to use the new renderer. Remove explicit <delete-post-modal> usage from _BlogItem.cshtml. Update _DeleteConfirmationModalPartial.cshtml with obsolescence notes for backward compatibility. Prevent duplicate modal markup and IDs in themes.
@poppastring
poppastring merged commit fc40ac3 into main Jun 30, 2026
3 checks passed
@poppastring
poppastring deleted the delete-post-fix branch June 30, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant