From 673f1f0ee511644d9f27f7613d404a1e6246cc88 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Mon, 16 Dec 2024 17:46:55 -0300 Subject: [PATCH] drop pagination-template partial template --- .../list/_entityFile_.component.ts.ejs | 4 +++- .../list/pagination-template.ejs | 21 ------------------- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/pagination-template.ejs diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs index 12d0d2a1e04c..153a2608d013 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs @@ -134,7 +134,9 @@ export class <%= componentName %> implements OnInit { <%_ } _%> <%_ if (paginationPagination) { _%> -<%- include('pagination-template'); -%> + itemsPerPage = ITEMS_PER_PAGE; + totalItems = 0; + page = 1; <%_ } else if (paginationInfiniteScroll) { _%> itemsPerPage = ITEMS_PER_PAGE; links: WritableSignal>> = signal({}); diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/pagination-template.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/pagination-template.ejs deleted file mode 100644 index 54f5af9f42da..000000000000 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/pagination-template.ejs +++ /dev/null @@ -1,21 +0,0 @@ -<%# - Copyright 2013-2024 the original author or authors from the JHipster project. - - This file is part of the JHipster project, see https://www.jhipster.tech/ - for more information. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. --%> - itemsPerPage = ITEMS_PER_PAGE; - totalItems = 0; - page = 1;