Commit 92b8f081 authored by Duggan, John's avatar Duggan, John
Browse files

Fix error when passing booleans to v_if

parent cb238e0f
Loading
Loading
Loading
Loading
Loading
+26 −18
Original line number Diff line number Diff line
@@ -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",
@@ -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:
+1 −0
Original line number Diff line number Diff line
@@ -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")