Skip to content

Commit

Permalink
Moved chapter audio back and showing navbar for admins where there ar…
Browse files Browse the repository at this point in the history
…e no questions
  • Loading branch information
josephmyers committed Feb 11, 2025
1 parent 52f5b79 commit 82dc76d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ <h2 matSubheader>{{ t("filter_questions") }}</h2>
(chapterChange)="onChapterSelect($event)"
>
</app-book-chapter-chooser>
</div>

<div class="action-icons">
@if (chapterHasAudio) {
<button
mat-icon-button
[matTooltip]="t('play_chapter')"
[matTooltipDisabled]="isAudioPlaying()"
(click)="toggleAudio()"
>
<mat-icon>{{ isAudioPlaying() ? "stop" : "play_arrow" }}</mat-icon>
<mat-icon>{{ isAudioPlaying() ? "stop" : "play_circle_outline" }}</mat-icon>
</button>
}
</div>

<div class="action-icons">
@if (canCreateScriptureAudio) {
<button
mat-icon-button
Expand Down Expand Up @@ -183,7 +183,7 @@ <h2 matSubheader>{{ t("filter_questions") }}</h2>
</as-split>
</div>
</div>
@if (projectDoc && totalVisibleQuestions() > 0) {
@if (projectDoc && (totalVisibleQuestions() > 0 || canCreateQuestions)) {
<div id="question-nav" [ngClass]="{ hide: textboxIsShownMobile || userOpenedChapterAudio }">
<div class="question-nav-start">
@if (canCreateQuestions) {
Expand Down

0 comments on commit 82dc76d

Please sign in to comment.