From c17baa36ef34131041ede626376042f57219cfd1 Mon Sep 17 00:00:00 2001
From: fhanportainer <79428273+fhanportainer@users.noreply.github.com>
Date: Sat, 20 Aug 2022 00:31:17 +1200
Subject: [PATCH] fix(app-template): fixed the app template list not scroll to
top issue (#7519)
* fix(app-template): fixed the app template list not scroll to top issue
* fix(templates): added id prop to PageHeader component.
---
app/portainer/react/components/index.ts | 9 ++++++++-
app/portainer/views/templates/templates.html | 2 +-
app/react/components/PageHeader/HeaderContainer.tsx | 7 +++++--
app/react/components/PageHeader/PageHeader.tsx | 4 +++-
4 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/app/portainer/react/components/index.ts b/app/portainer/react/components/index.ts
index c34faebd4..825dd9052 100644
--- a/app/portainer/react/components/index.ts
+++ b/app/portainer/react/components/index.ts
@@ -49,7 +49,14 @@ export const componentsModule = angular
.component('viewLoading', r2a(ViewLoading, ['message']))
.component(
'pageHeader',
- r2a(PageHeader, ['title', 'breadcrumbs', 'loading', 'onReload', 'reload'])
+ r2a(PageHeader, [
+ 'id',
+ 'title',
+ 'breadcrumbs',
+ 'loading',
+ 'onReload',
+ 'reload',
+ ])
)
.component(
'fallbackImage',
diff --git a/app/portainer/views/templates/templates.html b/app/portainer/views/templates/templates.html
index ae2e11009..90571ca3d 100644
--- a/app/portainer/views/templates/templates.html
+++ b/app/portainer/views/templates/templates.html
@@ -1,4 +1,4 @@
-