- @if (backRoute) {
-
+ @if (backRoute || onBackClick) {
+
}
-
{{ pageTitle }}
+
{{ pageTitle }}
@if (actions) {
diff --git a/src/app/shared/components/innerPagesHeader/inner-pages-header.component.ts b/src/app/shared/components/innerPagesHeader/inner-pages-header.component.ts
index adf82ef..a7f1712 100644
--- a/src/app/shared/components/innerPagesHeader/inner-pages-header.component.ts
+++ b/src/app/shared/components/innerPagesHeader/inner-pages-header.component.ts
@@ -1,6 +1,6 @@
import { Maybe } from '@/core';
import { NgTemplateOutlet } from '@angular/common';
-import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
+import { Component, ContentChild, EventEmitter, Input, Output, TemplateRef } from '@angular/core';
import { RouterLink, UrlTree } from '@angular/router';
import { Button } from 'primeng/button';
@@ -12,6 +12,7 @@ import { Button } from 'primeng/button';
export class InnerPagesHeaderComponent {
@Input() pageTitle!: string;
@Input() backRoute?: UrlTree | string | any[];
+ @Output() onBackClick = new EventEmitter
();
@ContentChild('actions', { static: true }) actions?: Maybe>;
constructor() {}
}
diff --git a/src/app/shared/components/invoices/correctionForm/form.component.html b/src/app/shared/components/invoices/correctionForm/form.component.html
index 4243126..78342b7 100644
--- a/src/app/shared/components/invoices/correctionForm/form.component.html
+++ b/src/app/shared/components/invoices/correctionForm/form.component.html
@@ -41,7 +41,7 @@
}
diff --git a/src/app/shared/components/invoices/correctionForm/form.component.ts b/src/app/shared/components/invoices/correctionForm/form.component.ts
index fe70424..a4968de 100644
--- a/src/app/shared/components/invoices/correctionForm/form.component.ts
+++ b/src/app/shared/components/invoices/correctionForm/form.component.ts
@@ -48,6 +48,12 @@ export class SharedCorrectionFormComponent extends AbstractForm<
itemDrafts: Record