Skip to content

Commit

Permalink
fix(atomic): disable next and previous quickview button at edges (#4762)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprudhomme authored Dec 5, 2024
1 parent 5e327af commit 4812865
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export class AtomicQuickviewModal implements InitializableComponent {
class="p-2"
style="square-neutral"
onClick={() => this.previousQuickview?.emit()}
disabled={this.current === 1}
text={this.bindings.i18n.t('quickview-previous')}
></Button>
<p class="text-center">
Expand All @@ -206,6 +207,7 @@ export class AtomicQuickviewModal implements InitializableComponent {
class="p-2"
style="square-neutral"
onClick={() => this.nextQuickview?.emit()}
disabled={this.current === this.total}
text={this.bindings.i18n.t('quickview-next')}
></Button>
</div>
Expand Down

0 comments on commit 4812865

Please sign in to comment.