feat: Admin Area Blog and Blog Page 1.00
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user