AI Implementation feature(914): Admin Area Blog and Blog Page 1.00 (#59)

This commit was merged in pull request #59.
This commit is contained in:
2026-07-23 10:37:53 +00:00
parent 294873240b
commit 29b447d51f
7 changed files with 149 additions and 85 deletions
@@ -3,6 +3,7 @@ import {
ChangeDetectorRef,
Component,
DestroyRef,
HostListener,
effect,
inject,
input,
@@ -211,6 +212,11 @@ export class BlogFormModalComponent {
this.cancel.emit();
}
@HostListener('document:keydown.escape')
onEscape(): void {
if (this.open() && !this.saving()) this.onCancel();
}
onSubmit(action: 'draft' | 'publish'): void {
this.titleTouched.set(true);
this.bodyTouched.set(true);