feat: Admin Area Blog and Blog Page 1.00

This commit is contained in:
OpenVelo Agent
2026-07-23 10:37:50 +00:00
parent 79a9adf720
commit f501a9046a
4 changed files with 138 additions and 82 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);