Skip to content

Commit

Permalink
feat: remove v2 banner (#7205)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Nov 5, 2024
1 parent a06ff33 commit ff984cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions ui/src/app/views/project/project.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export class ProjectComponent implements OnInit, OnDestroy {
project: Project;
routerSub: Subscription;
v2Enabled: boolean = false;
v2BannerVisible: boolean = false;

constructor(
private _route: ActivatedRoute,
Expand All @@ -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
Expand Down
7 changes: 0 additions & 7 deletions ui/src/app/views/project/project.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<div class="banner" *ngIf="v2BannerVisible">
CDS Ascode v2 is enabled for this project. It is currently in active development, some features may be missing or
incomplete.
<div class="close" (click)="clickCloseBanner()">
<span nz-icon nzType="close" nzTheme="outline"></span>
</div>
</div>
<div class="body">
<ng-container *ngIf="project">
<app-project-activity-bar [project]="project"></app-project-activity-bar>
Expand Down

0 comments on commit ff984cb

Please sign in to comment.