diff --git a/ui/src/app/views/project/project.component.ts b/ui/src/app/views/project/project.component.ts index 4014336131..dfbef41fcd 100644 --- a/ui/src/app/views/project/project.component.ts +++ b/ui/src/app/views/project/project.component.ts @@ -22,7 +22,6 @@ export class ProjectComponent implements OnInit, OnDestroy { project: Project; routerSub: Subscription; v2Enabled: boolean = false; - v2BannerVisible: boolean = false; constructor( private _route: ActivatedRoute, @@ -47,16 +46,9 @@ export class ProjectComponent implements OnInit, OnDestroy { }); this._featureService.isEnabled(FeatureNames.AllAsCode, { project_key: projectKey }).subscribe(f => { this.v2Enabled = f.enabled; - const state = this._store.selectSnapshot(PreferencesState.selectMessageState('ascode-v2')); - this.v2BannerVisible = !state && this.v2Enabled; this._cd.markForCheck(); }); }); - - this._store.select(PreferencesState.selectMessageState('ascode-v2')).subscribe(state => { - this.v2BannerVisible = !state && this.v2Enabled; - this._cd.markForCheck(); - }); } ngOnDestroy(): void { } // Should be set to use @AutoUnsubscribe with AOT diff --git a/ui/src/app/views/project/project.html b/ui/src/app/views/project/project.html index 9f81242912..b80c780a6b 100644 --- a/ui/src/app/views/project/project.html +++ b/ui/src/app/views/project/project.html @@ -1,10 +1,3 @@ -