- @if (showAdd || filter || moreActions) {
+ @if (showAdd || filter || showRefresh || moreActions) {
@if (filter) {
@@ -31,6 +31,9 @@
(click)="openFilter()"
>
}
+ @if (showRefresh) {
+
+ }
@if (showAdd) {
}
diff --git a/src/app/shared/components/pageDataList/page-data-list.component.ts b/src/app/shared/components/pageDataList/page-data-list.component.ts
index c8d3d2e..1555674 100644
--- a/src/app/shared/components/pageDataList/page-data-list.component.ts
+++ b/src/app/shared/components/pageDataList/page-data-list.component.ts
@@ -89,6 +89,7 @@ export class PageDataListComponent
{
@Input() showDelete: boolean = false;
@Input() showDetails: boolean = false;
@Input() showAdd: boolean = false;
+ @Input() showRefresh: boolean = true;
@Input() isFiltered: boolean = false;
@Input() fullHeight?: boolean = false;
@Input() height: string = '';
@@ -108,6 +109,7 @@ export class PageDataListComponent {
@Output() onAdd = new EventEmitter();
@Output() pageChange = new EventEmitter();
@Output() onThumbnailClick = new EventEmitter();
+ @Output() onRefresh = new EventEmitter();
filterDrawerVisible = signal(false);
expandedRows: { [key: string]: boolean } = {};
@@ -258,4 +260,8 @@ export class PageDataListComponent {
if (this.showDetails) totalCount += 1;
return totalCount;
});
+
+ refresh() {
+ this.onRefresh.emit();
+ }
}
diff --git a/src/index.html b/src/index.html
index 0002c06..17efe0d 100644
--- a/src/index.html
+++ b/src/index.html
@@ -2,7 +2,7 @@
- pos
+ پنل مدیریت صورتحسابهای مالیاتی