Loading src/nova/trame/view/components/execution_buttons.py +26 −18 Original line number Diff line number Diff line Loading @@ -71,15 +71,19 @@ class ExecutionButtons: id=f"{self.id}_run", click=self.run, ) if self.stop_btn: extra_params = {} if isinstance(self.stop_btn, tuple): extra_params["v_if"] = self.stop_btn vuetify.VBtn( "Stop", v_if=self.stop_btn, disabled=(f"{self.id}.stop_disabled",), loading=(f"{self.id}.stop_in_progress",), classes="mr-4", id=f"{self.id}_stop", prepend_icon="mdi-stop", click=self.stop, **extra_params, ) vuetify.VBtn( "Cancel", Loading @@ -91,13 +95,17 @@ class ExecutionButtons: id=f"{self.id}_cancel", click=self.cancel, ) if self.download_btn: extra_params = {} if isinstance(self.download_btn, tuple): extra_params["v_if"] = self.download_btn vuetify.VBtn( "Download Results", v_if=self.download_btn, disabled=(f"{self.id}.download_disabled",), loading=(f"{self.id}.download_in_progress",), id=f"{self.id}.download", click=self.download, **extra_params, ) async def download(self) -> None: Loading tests/gallery/views/app.py +1 −0 Original line number Diff line number Diff line Loading @@ -508,6 +508,7 @@ class App(ThemedApp): ToolOutputWindows("test") ExecutionButtons("test") ExecutionButtons("test_bindings", stop_btn=("true",), download_btn=False) with layout.post_content: html.Div("Sticky Bottom Content", classes="text-center w-100") Loading Loading
src/nova/trame/view/components/execution_buttons.py +26 −18 Original line number Diff line number Diff line Loading @@ -71,15 +71,19 @@ class ExecutionButtons: id=f"{self.id}_run", click=self.run, ) if self.stop_btn: extra_params = {} if isinstance(self.stop_btn, tuple): extra_params["v_if"] = self.stop_btn vuetify.VBtn( "Stop", v_if=self.stop_btn, disabled=(f"{self.id}.stop_disabled",), loading=(f"{self.id}.stop_in_progress",), classes="mr-4", id=f"{self.id}_stop", prepend_icon="mdi-stop", click=self.stop, **extra_params, ) vuetify.VBtn( "Cancel", Loading @@ -91,13 +95,17 @@ class ExecutionButtons: id=f"{self.id}_cancel", click=self.cancel, ) if self.download_btn: extra_params = {} if isinstance(self.download_btn, tuple): extra_params["v_if"] = self.download_btn vuetify.VBtn( "Download Results", v_if=self.download_btn, disabled=(f"{self.id}.download_disabled",), loading=(f"{self.id}.download_in_progress",), id=f"{self.id}.download", click=self.download, **extra_params, ) async def download(self) -> None: Loading
tests/gallery/views/app.py +1 −0 Original line number Diff line number Diff line Loading @@ -508,6 +508,7 @@ class App(ThemedApp): ToolOutputWindows("test") ExecutionButtons("test") ExecutionButtons("test_bindings", stop_btn=("true",), download_btn=False) with layout.post_content: html.Div("Sticky Bottom Content", classes="text-center w-100") Loading