Skip to content

Commit 701f2b9

Browse files
berkgevecijourdain
authored andcommitted
fix: correct typo amimation_step_max to animation_step_max
1 parent a91b9e2 commit 701f2b9

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/e3sm_quickview/components/toolbars.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def __init__(self):
450450
v3.VSlider(
451451
v_model=("animation_step", 1),
452452
min=0,
453-
max=("amimation_step_max", 0),
453+
max=("animation_step_max", 0),
454454
step=1,
455455
hide_details=True,
456456
density="compact",
@@ -472,14 +472,14 @@ def __init__(self):
472472
v3.VIconBtn(
473473
icon="mdi-chevron-right",
474474
flat=True,
475-
disabled=("animation_step === amimation_step_max",),
476-
click="animation_step = Math.min(amimation_step_max, animation_step + 1)",
475+
disabled=("animation_step === animation_step_max",),
476+
click="animation_step = Math.min(animation_step_max, animation_step + 1)",
477477
)
478478
v3.VIconBtn(
479479
icon="mdi-page-last",
480-
disabled=("animation_step === amimation_step_max",),
480+
disabled=("animation_step === animation_step_max",),
481481
flat=True,
482-
click="animation_step = amimation_step_max",
482+
click="animation_step = animation_step_max",
483483
)
484484
v3.VDivider(vertical=True, classes="mx-2")
485485
v3.VIconBtn(
@@ -491,12 +491,12 @@ def __init__(self):
491491
@change("animation_track")
492492
def _on_animation_track_change(self, animation_track, **_):
493493
self.state.animation_step = 0
494-
self.state.amimation_step_max = 0
494+
self.state.animation_step_max = 0
495495

496496
if animation_track:
497497
values = self.state[animation_track]
498498
if values:
499-
self.state.amimation_step_max = len(values) - 1
499+
self.state.animation_step_max = len(values) - 1
500500

501501
@change("animation_step")
502502
def _on_animation_step(self, animation_track, animation_step, **_):
@@ -512,7 +512,7 @@ async def _run_animation(self):
512512
with self.state as s:
513513
while s.animation_play:
514514
await asyncio.sleep(0.1)
515-
if s.animation_step < s.amimation_step_max:
515+
if s.animation_step < s.animation_step_max:
516516
with s:
517517
s.animation_step += 1
518518
await self.server.network_completion

0 commit comments

Comments
 (0)