I am faced with a requirement involving two components: the member component and the profile component. My task is to hide the forward button in the member component, specifically in member.component.html:
<div *ngIf="(post.PostPositionClass === 'message left') && enableForward" class="text-right cursor-pointer">
<i class="fa fa-forward"></i>
Forward
</div>
Furthermore, I need to adhere to certain conditions in order to hide the forward button from the profile component as well. This should be done in profile.component.html:
<div class="form-group">
<label class="control-label account-label">Coaching Eligibility</label>
<p *ngIf="!memberData.MemberProfile.IsPastProgramEndDate &&
(this.settingData.IsCoachingEnabled || (this.settingData.CoachingModel === CoachingModelConstant.ConditionalCoaching))">
<i class="fa fa-check green-color" aria-hidden="true"></i> Group is eligible</p>
<p *ngIf="memberData.MemberProfile.IsPastProgramEndDate || !(this.settingData.IsCoachingEnabled || (this.settingData.CoachingModel === CoachingModelConstant.ConditionalCoaching))" >
<i class="fa fa-times red-color" aria-hidden="true"></i> Group is not eligible</p>
<div *ngIf="!memberData.MemberProfile.IsPastProgramEndDate &&
(this.settingData.IsCoachingEnabled || (this.settingData.CoachingModel === CoachingModelConstant.ConditionalCoaching))">
<p *ngIf="this.settingData.IsDoNotCoachEnabled" >
<i class="fa fa-times red-color" aria-hidden="true"></i> Member not eligible
</p>
<p *ngIf="(!this.settingData.IsDoNotCoachEnabled)" class="green-color">
<i class="fa fa-check green-color" aria-hidden="true"></i> Member is eligible
</p>
</div>
</div>
I now must hide the forward button under the conditions where both Group and Member are deemed ineligible (the forward button located in the profile component). Can someone provide assistance?