From a85d495e7fffddd4d67efbecfc40692b1fd466c2 Mon Sep 17 00:00:00 2001 From: sougata-progress Date: Sun, 1 Dec 2024 06:56:35 +0000 Subject: [PATCH] Added conditional render for deprecated stable mesage Signed-off-by: sougata-progress --- .../package/package-sidebar/package-sidebar.component.html | 2 +- .../app/package/package-sidebar/package-sidebar.component.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/builder-web/app/package/package-sidebar/package-sidebar.component.html b/components/builder-web/app/package/package-sidebar/package-sidebar.component.html index 22e54e3aa..dfe98cae0 100644 --- a/components/builder-web/app/package/package-sidebar/package-sidebar.component.html +++ b/components/builder-web/app/package/package-sidebar/package-sidebar.component.html @@ -40,7 +40,7 @@

{{ latestLTS }}

Stable - +

diff --git a/components/builder-web/app/package/package-sidebar/package-sidebar.component.ts b/components/builder-web/app/package/package-sidebar/package-sidebar.component.ts index 2fc0401ce..403ace01f 100644 --- a/components/builder-web/app/package/package-sidebar/package-sidebar.component.ts +++ b/components/builder-web/app/package/package-sidebar/package-sidebar.component.ts @@ -157,4 +157,9 @@ export class PackageSidebarComponent { return channelExist?.name === this.latestLTS ? true : false; } + + shouldRenderDeprecation(): boolean { + let state = this.store.getState(); + return state.features.enableLTS; + } }