Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alert component to the parent home page to show banners after alert added in alert service #6278

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<app-new-dashboard-header tab="home" [workplace]="workplace"></app-new-dashboard-header>
<div class="govuk-width-container govuk-!-margin-top-7">
<ng-container *ngIf="newHomeDesignParentFlag || newHomeDesignParentFlag">
<app-alert></app-alert>
</ng-container>
<app-alert></app-alert>
<app-summary-section
[canViewListOfWorkers]="canViewListOfWorkers"
[workplace]="workplace"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<app-new-dashboard-header tab="home" [workplace]="workplace"></app-new-dashboard-header>
<div class="govuk-width-container govuk-!-margin-top-7">
<ng-container *ngIf="newHomeDesignParentFlag && isParentApprovedBannerViewed === false">
<ng-container *ngIf="isParentApprovedBannerViewed === false; else standardAlert">
<app-alert
data-testid="parentApprovedBanner"
[linkTextForAlert]="'What you can do as a parent workplace'"
(notifyAlertLinkClicked)="goToAboutParentsLink($event)"
[noFloatRight]="true"
></app-alert>
</ng-container>
<ng-template #standardAlert>
<app-alert></app-alert>
</ng-template>
</div>
<app-summary-section
*ngIf="canViewListOfWorkers"
Expand Down
Loading