Skip to content

Commit

Permalink
FIX #1525
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmartyrk committed Nov 14, 2024
1 parent 78eb4ab commit be12941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/group/group.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="page_content" *ngIf="group$ | async as group;">
<div id="page_header">
<div id="user_info_area">
<ng-container *ngIf="!auth.loggedIn$.value">
<ng-container *ngIf="!auth.loggedIn$.value || group.visibility === GroupService.VISIBILITY.public">
<button class="btn_medium_close icon" [routerLink]="['/', translate.currentLang, 'public', 'groups']"><svg
width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand All @@ -12,7 +12,7 @@
<div class="small_heading mobile_hidden" [innerHTML]="'VIEWS.GROUP.HEADING_BACK_TO_PUBLIC_GROUPS'| translate">
</div>
</ng-container>
<ng-container *ngIf="auth.loggedIn$.value">
<ng-container *ngIf="auth.loggedIn$.value && group.visibility === GroupService.VISIBILITY.private">
<button class="btn_medium_close icon" [routerLink]="['/', translate.currentLang, 'my', 'groups']"><svg
width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand Down
4 changes: 2 additions & 2 deletions src/app/topic/topic.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ng-container *ngIf="tabSelected$ | async as tabSelected;">
<div id="page_header" [TourItem]="{tourid: ['topic_mobile', 'topic_tablet'], index: 2, position: 'bottom'}">
<div id="user_info_area">
<ng-container *ngIf="!auth.loggedIn$.value">
<ng-container *ngIf="!auth.loggedIn$.value || topic.visibility === TopicService.VISIBILITY.public">
<button [routerLink]="['/', translate.currentLang, 'public', 'topics']"><svg width="24" height="24"
viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand All @@ -14,7 +14,7 @@
<div class="small_heading mobile_hidden"
[innerHTML]="'VIEWS.TOPICS_TOPICID.HEADING_BACK_TO_PUBLIC_TOPICS'| translate"></div>
</ng-container>
<ng-container *ngIf="auth.loggedIn$.value">
<ng-container *ngIf="auth.loggedIn$.value && topic.visibility === TopicService.VISIBILITY.private">
<button class="btn_medium_close icon" [routerLink]="['/', translate.currentLang, 'my', 'topics']"><svg
width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand Down

0 comments on commit be12941

Please sign in to comment.