Skip to content

Commit

Permalink
Merge pull request #1898 from citizenos/#1894
Browse files Browse the repository at this point in the history
Chore: Enable buttons for logged out state [#1894]
  • Loading branch information
DiverVM authored Feb 19, 2025
2 parents 4467acf + 19e7655 commit 18f4cc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/group/group.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</ng-container>
</div>
<div id="buttons_area">
<button id="join_button" *ngIf="!group.userLevel && (auth.loggedIn$ | async)" class="btn_medium_close"
<button id="join_button" *ngIf="!group.userLevel" class="btn_medium_close"
translate="VIEWS.GROUP.BTN_JOIN" (click)="joinGroup(group)"></button>
<div *ngIf="(group.userLevel)" class="permissions_lable tablet_hidden"
[translate]="(group.userLevel !== 'read')? ('TXT_GROUP_LEVELS_' + group.userLevel | uppercase) : 'VIEWS.GROUP.LBL_JOINED'">
Expand Down
5 changes: 1 addition & 4 deletions src/app/topic/topic.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
<button
id="join_button"
(click)="joinTopic(topic)"
*ngIf="
(!topic.permission.level || topic.permission.level === 'none') &&
(auth.loggedIn$ | async)
"
*ngIf="!topic.permission.level || topic.permission.level === 'none'"
class="btn_medium_close"
translate="VIEWS.TOPICS_TOPICID.BTN_JOIN"
></button>
Expand Down

0 comments on commit 18f4cc9

Please sign in to comment.